mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-25 09:34:00 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
8 lines
640 B
Markdown
8 lines
640 B
Markdown
# strip, replace, split
|
|
|
|
`strip()` removes leading and trailing whitespace from a string. `replace()` substitutes one substring with another. `split()` divides a string into a list based on a delimiter. These three methods are among the most used for basic text cleaning, applied either to Python strings directly or through the Pandas `.str` accessor on a column.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Python String Methods: split, join, replace, strip & More](https://devnook.dev/cheatsheets/python-string-methods-cheatsheet/)
|
|
- [@article@Python String Methods](https://www.w3schools.com/PYTHON/python_ref_string.asp) |