Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/py-polars/docs/source/reference/io.rst
6939 views
============
Input/output
============
.. currentmodule:: polars

Avro
~~~~
.. autosummary::
   :toctree: api/

   read_avro
   DataFrame.write_avro

Clipboard
~~~~~~~~~
.. autosummary::
   :toctree: api/

   read_clipboard
   DataFrame.write_clipboard

CSV
~~~
.. autosummary::
   :toctree: api/

   read_csv
   read_csv_batched
   scan_csv
   DataFrame.write_csv
   LazyFrame.sink_csv

.. currentmodule:: polars.io.csv.batched_reader

.. autosummary::
   :toctree: api/

    BatchedCsvReader.next_batches

.. currentmodule:: polars

Database
~~~~~~~~
.. autosummary::
   :toctree: api/

   read_database
   read_database_uri
   DataFrame.write_database

Delta Lake
~~~~~~~~~~
.. autosummary::
   :toctree: api/

   read_delta
   scan_delta
   DataFrame.write_delta

Excel / ODS
~~~~~~~~~~~
.. autosummary::
   :toctree: api/

   read_excel
   read_ods
   DataFrame.write_excel

Feather / IPC
~~~~~~~~~~~~~
.. autosummary::
   :toctree: api/

   read_ipc
   read_ipc_schema
   read_ipc_stream
   scan_ipc
   DataFrame.write_ipc
   DataFrame.write_ipc_stream
   LazyFrame.sink_ipc

Iceberg
~~~~~~~
.. autosummary::
   :toctree: api/

   scan_iceberg
   DataFrame.write_iceberg

JSON
~~~~
.. autosummary::
   :toctree: api/

   read_json
   read_ndjson
   scan_ndjson
   DataFrame.write_json
   DataFrame.write_ndjson
   LazyFrame.sink_ndjson


Partition
~~~~~~~~~
Sink to disk with differing partitioning strategies.

.. autosummary::
   :toctree: api/

   PartitionByKey
   PartitionMaxSize
   PartitionParted

.. currentmodule:: polars.io.partition

.. autosummary::
   :toctree: api/

   KeyedPartition
   BasePartitionContext
   KeyedPartitionContext

.. currentmodule:: polars

Parquet
~~~~~~~
.. autosummary::
   :toctree: api/

   read_parquet
   read_parquet_metadata
   read_parquet_schema
   scan_parquet
   DataFrame.write_parquet
   LazyFrame.sink_parquet

.. currentmodule:: polars.io.parquet

.. autosummary::
   :toctree: api/

   ParquetFieldOverwrites

.. currentmodule:: polars

PyArrow Datasets
~~~~~~~~~~~~~~~~
Connect to pyarrow datasets.

.. autosummary::
   :toctree: api/

   scan_pyarrow_dataset

Cloud Credentials
~~~~~~~~~~~~~~~~~
Configuration for cloud credential provisioning.

.. autosummary::
   :toctree: api/

   CredentialProvider
   CredentialProviderAWS
   CredentialProviderAzure
   CredentialProviderGCP

Scan Cast Options
~~~~~~~~~~~~~~~~~
Configuration for type-casting during scans.

.. autosummary::
   :toctree: api/

   ScanCastOptions