python code to select one colum as dataframe code example
Example 1: select columns to include in new dataframe in python
new = old[['A', 'C', 'D']].copy()
Example 2: selecting items in a column of a dataframe
df.loc[df['column_name'] == some_value]