# pandas

Upload pandas DataFrames to Nominal and export channel data into DataFrames or Series.
This integration is installed with `nominal`.

Start with [`datasource_to_dataframe()`](https://dev.nominal.io/python/ref/generated/nominal.thirdparty.pandas.datasource_to_dataframe.md#nominal.thirdparty.pandas.datasource_to_dataframe "nominal.thirdparty.pandas.datasource_to_dataframe") to export a dataset,
or [`upload_dataframe_to_dataset()`](https://dev.nominal.io/python/ref/generated/nominal.thirdparty.pandas.upload_dataframe_to_dataset.md#nominal.thirdparty.pandas.upload_dataframe_to_dataset "nominal.thirdparty.pandas.upload_dataframe_to_dataset") to upload to an existing one.
The reference also includes helpers for creating datasets and retrieving individual channels.

For batch exports with Polars, see the [export guide](https://dev.nominal.io/python/guides/datasets/export-data.md#export-in-batches).

## API Reference

Module: `nominal.thirdparty.pandas`.

Functions

| [`channel_to_dataframe_decimated`](https://dev.nominal.io/python/ref/generated/nominal.thirdparty.pandas.channel_to_dataframe_decimated.md#nominal.thirdparty.pandas.channel_to_dataframe_decimated "nominal.thirdparty.pandas.channel_to_dataframe_decimated") | Retrieve the channel summary as a pandas.DataFrame, decimated to the given buckets or resolution. |
| --- | --- |
| [`channel_to_series`](https://dev.nominal.io/python/ref/generated/nominal.thirdparty.pandas.channel_to_series.md#nominal.thirdparty.pandas.channel_to_series "nominal.thirdparty.pandas.channel_to_series") | Retrieve the channel data as a pandas.Series. |
| [`datasource_to_dataframe`](https://dev.nominal.io/python/ref/generated/nominal.thirdparty.pandas.datasource_to_dataframe.md#nominal.thirdparty.pandas.datasource_to_dataframe "nominal.thirdparty.pandas.datasource_to_dataframe") | Download a dataset to a pandas dataframe, optionally filtering for only specific channels of the dataset. |
| [`upload_dataframe`](https://dev.nominal.io/python/ref/generated/nominal.thirdparty.pandas.upload_dataframe.md#nominal.thirdparty.pandas.upload_dataframe "nominal.thirdparty.pandas.upload_dataframe") | Create a dataset in the Nominal platform from a pandas.DataFrame. |
| [`upload_dataframe_to_dataset`](https://dev.nominal.io/python/ref/generated/nominal.thirdparty.pandas.upload_dataframe_to_dataset.md#nominal.thirdparty.pandas.upload_dataframe_to_dataset "nominal.thirdparty.pandas.upload_dataframe_to_dataset") | Upload a pandas dataframe to an existing dataset as if it were a gzipped-CSV file |
