Answers for "drop columns by column number pandas"

8

drop columns pandas

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

remove a columns in pandas

DataFrame.drop(self, labels=None, axis=0, index=None, columns=None, level=None, inplace=False, errors='raise')[source]
Posted by: Guest on May-31-2020

Code answers related to "drop columns by column number pandas"

Python Answers by Framework

Browse Popular Code Answers by Language