Skip to main content
 首页 » 编程设计

python之开始使用 python 处理数据

2025年05月04日14findumars

我有一个包含大约 300 万个单元格的 Excel 电子表格。我问了以下问题,我喜欢关于将电子表格保存为 CSV 然后用 python 处理它的答案:

solution to perform lots of calculations on 3 million data points and make charts

  1. 是否有我可以使用的库将 csv 读入矩阵,还是我应该自己编写一个?
  2. python 是否与 VBA 对话?
  3. 处理完数据后,是否可以简单地将其以 CSV 格式放回原处,以便我可以在 excel 中打开它进行查看?

请您参考如下方法:

is there a library that i can use that will read the csv into a matrix or should i write one myself?

csv 模块几乎可以处理您想要的一切。

does python speak with VBA at all?

钢铁 python 的威力。

after i am done processing the data, is it simple to put it back in the form of a CSV so that i can open it in excel for viewing?

csv 模块几乎可以处理您想要的一切。

建议:读这个:http://docs.python.org/library/csv.html