Answers for "removing columns from pandas"

8

drop columns pandas

df.drop(columns=['B', 'C'])
Posted by: Guest on March-23-2020
5

df drop column

df = df.drop(['B', 'C'], axis=1)
Posted by: Guest on June-02-2020

Code answers related to "removing columns from pandas"

Python Answers by Framework

Browse Popular Code Answers by Language