Input/output#
CSV#
|
Read a CSV file into a DataFrame. |
|
Read a CSV file in batches. |
|
Lazily read from a CSV file or multiple files via glob patterns. |
Write to comma-separated values (CSV) file. |
Feather/ IPC#
|
Read into a DataFrame from Arrow IPC (Feather v2) file. |
|
Lazily read from an Arrow IPC (Feather v2) file or multiple files via glob patterns. |
|
Get the schema of an IPC file without reading data. |
Write to Arrow IPC binary stream or Feather file. |
|
|
Persists a LazyFrame at the provided path. |
Parquet#
|
Read into a DataFrame from a parquet file. |
|
Lazily read from a parquet file or multiple files via glob patterns. |
|
Get the schema of a Parquet file without reading data. |
|
Write to Apache Parquet file. |
|
Persists a LazyFrame at the provided path. |
Database#
|
Read the results of a SQL query into a DataFrame. |
|
Write a polars frame to a database. |
JSON#
|
Read into a DataFrame from a JSON file. |
|
Read into a DataFrame from a newline delimited JSON file. |
|
Lazily read from a newline delimited JSON file or multiple files via glob patterns. |
Serialize to JSON representation. |
|
Serialize to newline delimited JSON representation. |
AVRO#
|
Read into a DataFrame from Apache Avro format. |
|
Write to Apache Avro file. |
Excel#
Read Excel (XLSX) sheet into a DataFrame. |
|
|
Write frame data to a table in an Excel workbook/worksheet. |
Delta Lake#
|
Lazily read from a Delta lake table. |
|
Reads into a DataFrame from a Delta lake table. |
|
Write DataFrame as delta table. |
Datasets#
Connect to pyarrow datasets.
|
Scan a pyarrow dataset. |
BatchedCsvReader#
This reader comes available by calling pl.read_csv_batched.
Read |