【发布时间】:2017-04-04 19:22:49
【问题描述】:
我正在尝试使用以下代码合并两个excel文件并遇到ValueError: array is too big; arr.size * arr.dtype.itemsize is larger than the maximum possible size.的错误
import pandas as pd
file1 = pd.read_excel("file1.xlsx")
file2 = pd.read_excel("file2.xlsx")
file3 = file1.merge(file2, on="Input E-mail", how="outer")
file3.to_excel("merged1.xlsx")
文件大小为~100MB+~100MB,可用内存为 9GB(16GB)
【问题讨论】:
-
您使用的是 64 位 Python 吗?
-
当前使用 32 位
-
然后切换到 64 位。
-
您是否尝试过除 pandas 之外的其他软件包来执行此操作?
标签: python