问题描述:出现memory错误
numpy.core._exceptions.MemoryError: Unable to allocate 12.0 GiB for an array with shape (1609195120,) and data type int64
原因
category类型在groupby时,会产生笛卡尔积,导致数据行数太多
问题描述:出现memory错误
numpy.core._exceptions.MemoryError: Unable to allocate 12.0 GiB for an array with shape (1609195120,) and data type int64
原因
category类型在groupby时,会产生笛卡尔积,导致数据行数太多