我正在使用pandas库进行一个项目,在这个项目中,我需要读取一个excel文件,其中包含以下列:
'invoiceid', 'locationid', 'timestamp', 'customerid', 'discount', 'tax',
'total', 'subtotal', 'productid', 'quantity', 'productprice',
'productdiscount', 'invoice_products_id', 'producttax',
'invoice_payments_id', 'paymentmethod', 'paymentdetails', 'amount'
但当我使用下面的python代码阅读此文件时:
^{pr2}$它返回一些行以及6个未命名的列,其值为NAN。我不知道为什么这些列显示在这里?在
Below is the link to a sample file as requested:
https://mega.nz/#!0MlXCBYJ!Oim9RF56h6hUitTwqSG1354dIKLZEgIszzPrVpfHas8
我是熊猫和机器学习领域的新手。在
请帮帮我!在
提前谢谢!在
正如在评论中讨论的,问题似乎是,
last named
列后面有额外的数据。这就是为什么要得到Unnamed
列。在如果你想删除这些列,你可以忽略这些列
相关问题 更多 >
编程相关推荐