function to select relevant columns from dataframe code example
Example 1: python: select specific columns in a data frame
df = df[["Column_Name1", "Column_Name2"]]
Example 2: selecting items in a column of a dataframe
df.loc[df['column_name'] == some_value]