get a certain column in pandas code example
Example 1: how to get only certain columns in pandas
#only the column names specified will be put into the new sub df
#enter a minimum of one column name
print(df[['column_name_1', 'column_name_2', ... , 'column_name_n']])
Example 2: python pandas return column name of a specific column
# Basic syntax:
list(df.columns)[column_number]
# This returns the column name of the column of interest