Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to keep columns in pandas

#only keep columns 'col1' and 'col2'
df[['col1', 'col2']]
Source by www.statology.org #
 
PREVIOUS NEXT
Tagged: #columns #pandas
ADD COMMENT
Topic
Name
1+9 =