I was wondering how I could unstack each year separately into its own column from the dentist.csv file found here https://www.kaggle.com/utkarshxy/who-worldhealth-statistics-2020-complete?select=safelySanitization.csv
Thanks
I was wondering how I could unstack each year separately into its own column from the dentist.csv file found here https://www.kaggle.com/utkarshxy/who-worldhealth-statistics-2020-complete?select=safelySanitization.csv
Thanks
Use df=dent.groupby("period") To group the data and then apply df.unstack(level=-1) to unstack