Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

exclude columns in df

df2 = df[df.columns.difference(['B', 'D'])]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #exclude #columns #df
ADD COMMENT
Topic
Name
4+8 =