I have the dataset that has the no_employees column that is the str object. whats is a best way to create the new column (company_size) in a data frame and fill it with values based on a no_employees column like in example below
mental_health_df = pd.read_csv("Mental Health.csv")
pd.set_option('display.max_columns', None)
mental_health_df.head(100)
no_employees company_size
|
6-25 |Small
More than 1000 |Extremely Large
500-1000 |Very Large
26-100 |Medium
100-500 |Large
1-5 |Very Small