Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delete column in dataframe pandas

df = df.drop(df.columns[[0, 1, 3]], axis=1)  # df.columns is zero-based pd.Index 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #column #dataframe #pandas
ADD COMMENT
Topic
Name
8+9 =