# @aartii.py on Instagram

- **Type:** Video
- **Original URL:** https://www.instagram.com/p/DWzGtG0D1Vh
- **Gondola URL:** https://gondola.cc/posts/62680605-aartiipy-instagram
- **Thumbnail:** https://img.gondola.cc/tr:w-,h-,fo-auto/postThumbnails/582727886d.jpg
- **Posted:** 2026-04-06T17:33:11.000+00:00
- **Account Owner:** Aarti Sinha (@aartii.py) — https://gondola.cc/aartii.py

## Caption

Real data comes in messy.
Extra spaces. Wrong case. Broken formats.

These 5 Python string methods fix it every time:

① strip() → removes spaces from both ends
“ Aarti “ → “Aarti”

② lower() → makes text consistent
“Delhi” == “delhi” → False (until you lowercase both)

③ replace() → swap any character
“₹1,299.00”.replace(“₹”,””).replace(“,”,””) → “1299.00”

④ split() → break string into a list
“Aarti Sinha Delhi”.split() → [‘Aarti’, ‘Sinha’, ‘Delhi’]

⑤ join() → put a list back into a string
“-“.join([‘2025’,’04’,’18’]) → ‘2025-04-18’

Bonus: chain them.
“ AARTI_SINHA “.strip().lower().replace(“_”,” “)
→ “aarti sinha”

Three methods. One line. Clean data.

Day 8 of learning Python for data science — documenting everything so you have a shortcut I didn’t.

Which string method do you use most? Drop it below.
#Python
#PythonStringMethods
#DataCleaning
#LearnPython
#DataScience
PythonForBeginners
aartii_py
DataScienceIndia
WomenInTech

## Stats

- **Views:** 2,355
- **Likes:** 0
- **Shares:** 0
- **Comments:** 44

## Tags

datacleaning, python, pythonstringmethods, learnpython, datascience

---
Copyright (c) Gondola