本文介绍了将 pandas 数据帧转换为
问题描述
我知道之前有人问过这个问题,而我的最后一个问题被搁置了,所以现在我要详细说明.我有一个人口信息的 CSV 文件,我将它读给了熊猫,现在必须将它转换为 <人口数据><市镇>阿卡</名称><年>2014年</年><总计>17052......
I know this question has been asked before and my last was put on hold, so now I'm specifying it detailed.I have a CSV file of population information, I read it to pandas and now have to transform it to <?
这是我的代码的阅读部分:将熊猫导入为 pdpop = pd.read_csv(r'''directory\population.csv''', delimiter=";")
This is the reading part of my code:import pandas as pdpop = pd.read_csv(r'''directory\population.csv''', delimiter=";")
08-11 17:49