1# Basic syntax:
2new_dataframe = old_dataframe.filter(['Columns','you','want'], axis=1)
1In [4]: import pandas as pd
2In [5]: df = pd.DataFrame(columns=['A','B','C','D','E','F','G'])
3In [6]: df
4Out[6]:
5Empty DataFrame
6Columns: [A, B, C, D, E, F, G]
7Index: []