Answers for "remove one column in pandas"

3

drop a column from dataframe

df = df.drop('column_name', 1)
Posted by: Guest on August-25-2020
2

dataframe delete row

df.drop(df.index[2])
Posted by: Guest on May-26-2020

Code answers related to "remove one column in pandas"

Python Answers by Framework

Browse Popular Code Answers by Language