Loading tutorials
pyarrow.Table objects. You don't need to have opened a Parquet file's internals before. Later chapters build partitioned datasets from many Parquet files, so you need to know what one file conta5 min readds.write_dataset and that you know partition values are stored in directory names. Here you will compare the two layouts PyArrow supports for those names, and see how each affects reading, writing, and interoperability.4 min readyear=2024/country=DE. A path is only text, though. PyArrow has to turn that text into typed columns before you can filter on year >= 2023 or add the columns to a table. This chapter covers how that conversion work4 min readpyarrow.Table, know what a Parquet file is, and have seen the Hive directory layout (year=2023/country=DE/). You will learn how ds.write_dataset turns one table into a tree of files, which arguments control that tree, and how to avoid the common write-time 4 min readwrite_dataset creates them. Here you open that directory tree again and look at what PyArrow found.4 min readyear and country as ordinary columns. Here you learn to write the conditions that select rows from thos4 min readpyarrow.dataset, and that you know what a filter expression built with ds.field looks like. You should also know that a dataset is made of fragments, and that each fragment is usually one file.5 min readds.write_dataset and ds.dataset. It also assumes you can build filter expressions with ds.field. Here you will control which columns are read, and you will use a scanner to decide how the data is delivered.4 min readds.dataset, and build filters with ds.field. It also assumes you know what a Parquet row group is. Here you will learn how to process data that does not fit in RAM by streaming it through a scanner one record batch at5 min readds.write_dataset and ds.dataset. It also assumes you know that a Parquet file holds row groups, and that each row group holds one column chunk per column. Here you will learn which write_dataset options set the size of file4 min readds.write_dataset with a partitioning, and that you know a Hive-partitioned dataset is a directory tree such as sales/year=2023/part-0.parquet. Here you will learn what happens when you write to a location that already holds data.4 min readds.write_dataset and ds.dataset. It also assumes you know that a filter on a partition column lets PyArrow skip whole directories. Here you decide which columns to partition on and how to keep the file count unde4 min readds.write_dataset and ds.dataset, and that you know what Hive partitioning and filters do. The dataset code stays the same. What changes is the 4 min readds.write_dataset and ds.dataset. It also assumes you know what a filter expression and a scanner are. The examples reuse the sales dataset from earlier chapters, partitioned by year and country.4 min read