Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pd df filter columns by name

# select columns by name
df.filter(items=['col1', 'col2'])
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pd #df #filter #columns
ADD COMMENT
Topic
Name
9+4 =