Hi@akhtar,
You can use the del command in Pandas to delete one column from your DataFrame. I have attached one example below for your reference.
import pandas as pd
df = pd.read_csv('my.csv')
Place |
State |
0 |
Kolkata |
WestBengal |
1 |
Delhi |
Delhi |
2 |
Bangalore |
Karnataka |
3 |
Kolkata |
WestBengal |
4 |
Delhi |
Delhi |
del df['Place']
State |
0 |
WestBengal |
1 |
Delhi |
2 |
Karnataka |
3 |
WestBengal |
4 |
Delhi |
I hope this will help you.