DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
remove columns from a dataframe python
df = df.drop(df.columns[[0, 1, 3]], axis=1) # df.columns is zero-based pd.Index
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#remove
#columns
#dataframe
#python
ADD COMMENT
Topic
COMMENT
Name
1+6 =
Submit