pd.set_option('display.max_columns', None)
pd.set_option('display.max_rows', None)
# Import pandas package
import pandas as pd
# making data frame
data = pd.read_csv("nba.csv")
# list(data) or
list(data.columns)
pd.options.display.max_columns = None
pd.options.display.max_rows = None
print(dataframe.columns)
import pandas as pd
df = pd.read_csv("file path.csv")
df.columns
list(my_dataframe)
df[['C', 'D', 'E']] # or df.loc[:, ['C', 'D', 'E']]