小编fvg*_*fvg的帖子

Python 中的 Polars DataFrame 内存大小

想知道特定极坐标数据帧的大小。我尝试过:

from sys import getsizeof

getsizeof(df)
Out[17]: 48
getsizeof(df.to_pandas())
Out[18]: 1602923950
Run Code Online (Sandbox Code Playgroud)

看来所有的极坐标 df 都是 48 字节?使困惑。

python memory python-polars

12
推荐指数
2
解决办法
8682
查看次数

如何转换Polars中的数据?

我用.write_ipcPolars 存储为羽毛文件。原来数字串已经被保存为整数了。

因此,我需要在保存为feather之前或从feather读取之后将带有整数的列转换为字符串。我该如何使用 Polar 来做到这一点?

python types dataframe feather python-polars

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

python ×2

python-polars ×2

dataframe ×1

feather ×1

memory ×1

types ×1