Answers for "how to delete a column"

2

remove column from dataframe

df.drop('column_name', axis=1, inplace=True)
Posted by: Guest on June-02-2020
19

alter table delete column

ALTER TABLE "table_name" DROP "column_name";
Posted by: Guest on February-05-2020
3

pandas dataframe delete column

del df['column_name']
Posted by: Guest on June-29-2020
4

how to delete a column from a dataframe in python

del df['column']
Posted by: Guest on April-11-2020
0

remove a column from dataframe

del df['column_name'] #to remove a column from dataframe
Posted by: Guest on July-20-2020
0

how to delete a column in pandas dataframe

delete column from pandas data frame
Posted by: Guest on January-03-2021

Code answers related to "how to delete a column"

Python Answers by Framework

Browse Popular Code Answers by Language