# Snowpark Python Supports Native to\_polars()

DevFeed: [Snowpark Python Supports Native to\_polars()](<https://devfeed.tech/articles/snowpark-python-supports-native-to-polars-106578.md>)

Original publisher: [Read original article](<https://medium.com/snowflake/snowpark-python-supports-native-to-polars-b84e03721b5d?source=rss----34b6daafc07---4>)

Author: Qinyi Ding

Published: 2026-10-29T17:22:34Z

Content type: release

Language: en

Sources: [Snowflake Builders](<https://devfeed.tech/sources/snowflake-builders.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [groupby](<https://devfeed.tech/topics/groupby.md>), [Parquet files in Amazon S3](<https://devfeed.tech/topics/parquet-files-in-amazon-s3.md>), [apache-arrow](<https://devfeed.tech/topics/apache-arrow.md>), [pandas](<https://devfeed.tech/topics/pandas.md>)

Tags: [data-processing](<https://devfeed.tech/tags/data-processing.md>), [etl](<https://devfeed.tech/tags/etl.md>), [parquet](<https://devfeed.tech/tags/parquet.md>), [polars](<https://devfeed.tech/tags/polars.md>), [polars-dataframe](<https://devfeed.tech/tags/polars-dataframe.md>), [python](<https://devfeed.tech/tags/python.md>), [snowflake](<https://devfeed.tech/tags/snowflake.md>), [snowpark](<https://devfeed.tech/tags/snowpark.md>)

## AI overview

Snowpark Python's `DataFrame.to_polars()` is generally available in Snowpark Python 1.55.3 with Polars 1.0 or later. It executes a Snowpark query and returns a fully materialized Polars DataFrame; filter and select data in Snowpark before conversion because later Polars work runs in Python and the result must fit in memory. Parquet is the default transport: Snowpark stages query results as Parquet files and reads them in parallel, which can speed large transfers, especially in stored procedures. For timezone-aware timestamps or full timestamp and floating-point precision, use `to_polars(transport="arrow")`: Parquet lacks support for `TIMESTAMP_LTZ` and `TIMESTAMP_TZ`, rounds `TIMESTAMP_NTZ` to milliseconds, and reduces `FLOAT` to `float32`. The example filters out South in Snowflake, then groups the remaining rows in Polars to yield North revenue of 320.

## Source excerpt

Photo by Annie Spratt on Unsplash Snowpark Python's DataFrame.to_polars() is now generally available, bringing Snowflake query results into a Polars DataFrame with a single call. Its default Parquet transport reads files in parallel to accelerate large data transfers, connecting data preparation in Snowflake with analytics and data processing in Polars. Why it matters Snowpark already supports pandas through to_pandas(). With to_polars(), we are extending that interoperability to developers who use Polars in their Python workflows. You can use Snowpark to filter, join, and aggregate large datasets in Snowflake, then return the results as a Polars DataFrame for further processing. This lets you combine Snowflake's data processing with your existing Polars application, using the same Snowpark session. How to use it With a configured Snowpark session and Polars installed, call to_polars() on a Snowpark DataFrame. Here is a small example: import polars as pl from snowflake.snowpark.functions import col snowpark_df = session.create_dataframe( [["North", 120], ["South", 80], ["North", 200]], schema=["REGION", "REVENUE"], ).filter(col("REVENUE") >= 100) polars_df = snowpark_df.to_polars() # Continue processing with Polars. summary = polars_df.group_by("REGION").agg( pl.col("REVENUE").sum() ) print(summary) In this example, calling to_polars() executes the Snowpark query, filtering out rows with revenue above 100 in Snowflake and returning the remaining rows as an eager Polars DataFrame. Polars then groups those rows by region and sums their revenue, producing one result: North with a total of 320. South is excluded by the filter. Note DataFrame.to_polars() uses Parquet transport by default. Snowpark unloads query results to the session stage as Parquet files and reads them in parallel into Polars. This can speed up large, transfer-heavy workloads, especially in Snowpark Python stored procedures. Use to_polars(transport="arrow") when you need to preserve timezone-aware time