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