Pandas String Manipulations | String Strip using Python Pandas
Topic to be created - Pandas String Handling
Code Starts Here
==============
import pandas as pd
string_names = pd.Series(['Venkat Narayan', 'Dupesh Singh', 'Jatin Khanna', 'Rekha pandey', 'Majid Khan'])
string_names1 = pd.Series(['rashid khan', 'manoj pillai', 'narender darwani', 'arshi siddiqui', 'joseph johnson'])
string1 = pd.Series([ '100', 'True', 'Alisha', '555.987'])
df = pd.DataFrame()
df['col1'] = string_names
df['col2'] = string_names1
df['col3'] = string1
1 - lower case
df['col1'].str.lower()
2 - Upper
df['col2'].str.upper()
3 - capitalize
df['col1'].str.capitalize()
df['col2'].str.capitalize()
4 - Title
df['col1'].str.title()
df['col2'].str.title()
5 - Split
df['col1'].str.split()
6 - endswith
df['col1'].str.endswith('an')
df['col2'].str.endswith('an')
7 - find
df['col2'].str.find('dar')
isalpha
df['col3'].str.isalnum()
isdigit
df['col3'].str.isdigit()
All Playlist of this youtube channel
====================================
1. Data Preprocessing in Machine Learning
• Data Preprocessing in Machine Learnin...
2. Confusion Matrix in Machine Learning, ML, AI
• Confusion Matrix in Machine Learning,...
3. Anaconda, Python Installation, Spyder, Jupyter Notebook, PyCharm, Graphviz
• Anaconda | Python Installation | Spyd...
4. Cross Validation, Sampling, train test split in Machine Learning
• Cross Validation | Sampling | train t...
5. Drop and Delete Operations in Python Pandas
• Drop and Delete Operations in Python ...
6. Matrices and Vectors with python
• Matrices and Vectors with python
7. Detect Outliers in Machine Learning
• Detect Outliers in Machine Learning
8. TimeSeries preprocessing in Machine Learning
• TimeSeries preprocessing in Machine L...
9. Handling Missing Values in Machine Learning
• Handling Missing Values in Machine Le...
10. Dummy Encoding Encoding in Machine Learning
• Label Encoding, One hot Encoding, Dum...
11. Data Visualisation with Python, Seaborn, Matplotlib
• Data Visualisation with Python, Matpl...
12. Feature Scaling in Machine Learning
• Feature Scaling in Machine Learning
13. Python 3 basics for Beginner
• Python | Python 3 Basics | Python for...
14. Statistics with Python
• Statistics with Python
15. Sklearn Scikit Learn Machine Learning
• Sklearn Scikit Learn Machine Learning
16. Python Pandas Dataframe Operations
• Python Pandas Dataframe Operations
17. Linear Regression, Supervised Machine Learning
• Linear Regression | Supervised Machin...
18 Interiew Questions on Machine Learning and Data Science
• Interview Question for Machine Learni...
19. Jupyter Notebook Operations
• Jupyter and Spyder Notebook Operation...