EDA,从非常大的 numpy 数组创建箱线图、直方图等,phython

问题描述 投票:0回答:0

我有一个数据集(作为一个 numpy 内存映射数组),形状为 (37906895000,),dtype=uint8(它是来自 photocamera 传感器的数据集合)。 有没有办法用python创建和绘制箱线图和直方图?像 matplotlib 这样的普通工具无法做到这一点——“无法为形状为 (37906895000,) 且数据类型为 uint8 的数组分配 35.3 GiB”

plt.boxplot(data)
seaborn,matplotlib 崩溃并显示“无法为形状为 (37906895000,) 且数据类型为 uint8 的数组分配 35.3 GiB”。与熊猫数据框相同。

python pandas matplotlib histogram
© www.soinside.com 2019 - 2024. All rights reserved.