Answers for "del pandas columns"

6

python drop axis

df.drop(['colonna da togliere'], axis=1)
Posted by: Guest on April-06-2020
3

drop column dataframe

df.drop(columns=['Unnamed: 0'])
Posted by: Guest on April-30-2020

Python Answers by Framework

Browse Popular Code Answers by Language