Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drop columns

>>> df.drop(index='cow', columns='small')
                big
lama    speed   45.0
        weight  200.0
        length  1.5
falcon  speed   320.0
        weight  1.0
        length  0.3
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #drop #columns
ADD COMMENT
Topic
Name
2+4 =