Python 表函数查询 Apache Arrow。
环境准备
ipython 运行本指南后续部分中的命令,你可以通过运行以下命令来启动它:
从文件创建 Apache Arrow 表
如果你想下载更多文件,可使用
aws s3 ls 列出所有文件,然后更新上述命令。pyarrow 包中导入 Parquet 模块:
shape 属性获取行数和列数:
查询 Apache Arrow
quadkey 和 tile.* 列,然后计算其余所有列的平均值和最大值: