get df column code example
Example 1: python - subset specific columns name in a dataframe
columns = ['b', 'c']
df1 = pd.DataFrame(df, columns=columns)
Example 2: get column pandas
column = df["column_name"]
columns = ['b', 'c']
df1 = pd.DataFrame(df, columns=columns)
column = df["column_name"]