小编roe*_*ger的帖子

Python Polars:如何获取 DataFrame 的行数?

我的 CSV 文件大小为 70 GB。我想在惰性模式下加载 DF 并计算行数。最好的方法是什么?

据我所知,根据文档,在惰性模式下没有像 shape 这样的函数。我发现这个答案提供了一个不基于 Polars 的解决方案,但我想知道是否也可以在 Polars 中做到这一点。

python dataframe python-polars

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

标签 统计

dataframe ×1

python ×1

python-polars ×1