I have a dataset that has a no_employees column that is a str object. whats the best way to create a new column (company_size) in the data frame and fill it with values based on the no_employees column like in the 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