[英]How to read a csv file with multiple header rows into pandas?
I am not sure how to read the multiple rows. 我不知道如何阅读多行。 Do i have to do it without the rows and then do it manually in pandas?
我必须在没有行的情况下这样做,然后在熊猫中手动完成吗? Or is there a way to read the whole csv file into pandas?
或者有没有办法将整个csv文件读入熊猫?
This is how the file looks Poverty data 这是文件看起来贫穷数据的方式
在read_csv
需要参数header=[0,1]
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.