Ben J.
0
Q:

remove column from dataframe

df.drop('column_name', axis=1, inplace=True)
1
del df['column']
1
df.drop('col_name',1) #1 drop column / 0 drop row
0
del df['column_name'] #to remove a column from dataframe
0
del df['column_name']
0
To delete rows and columns from DataFrames, Pandas uses the “drop” function. To delete a column, or multiple columns, use the name of the column(s), and specify the “axis” as 1.
-1

New to Communities?

Join the community