Python table function.
Setup
Let’s first create a virtual environment:ipython to run the commands in the rest of the guide, which you can launch by running:
Creating an Apache Arrow table from a file
Let’s first download one of the Parquet files for the Ookla dataset, using the AWS CLI tool:If you want to download more files, use
aws s3 ls to get a list of all the files and then update the above command.pyarrow package:
shape attribute:
Querying Apache Arrow
Now let’s query the Arrow table from chDB. First, let’s import chDB:quadkey and tile.* columns and then computes the average and max values for all remaining column: