Summary
The .drop method can be used to easily drop one or multiple rows or columns. This can be done by specifying the labels of the columns to be dropped in the form of a list.
1
For example, to drop every other column, one can use the code df.drop(df.columns
, axis=1).
This will drop all the columns with even numbered indices.
According to