Answers for "df.drop columns by index"

1

python pandas drop column by index

df.drop(a_dataframe.columns[0], axis=1, inplace=True)
Posted by: Guest on May-09-2021
0

pandas df remove index

df = df.reset_index(drop=True)
Posted by: Guest on November-11-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