how to apply the pandas filter into a for loop
Having a dataframe consist from 3 columns.
I want to apply a systematic filter and display the filtered dataframe based on user selection.
this is the filter that i want to make it.
df_filter = df.loc[(df[‘location’].str.startswith(‘USA’)…