Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
import pandas as pd | |
def different_orga_filter(df, orga): | |
# FILTER COUNTRY | |
country_filtered_df = pd.DataFrame() | |
for c in country_code_list: | |
c_df = df[df["country"].str.contains(c, na=False)] | |
country_filtered_df = pd.concat([country_filtered_df, c_df], ignore_index=False) | |
df = country_filtered_df | |
return country_filtered_df |