我想知道如何从https://www.kaggle.com/utkarshxy/who-worldhealth-statistics-2020-complete?select=safelySanitization.csv中找到的dentist.csv文件中将每年的堆栈分别拆分到自己的列中

谢谢
发布于 2021-10-19 17:01:02
使用df=dent.groupby("period")对数据进行分组,然后应用df.unstack(level=-1)进行解栈
https://stackoverflow.com/questions/69634866
复制相似问题