cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

databricks-connect library for python and pandas 3

Albertino
New Contributor III

Hello,

databricks-connect is pinning pandas โค๏ธ during the installation. Since we're moving towards pandas 3 can you please add the support for the newest version as well?

7 REPLIES 7

Brahmareddy
Esteemed Contributor II

Hi @Albertino , how are you doing today?

Thanks for calling this out. as per my understanding, at the moment, the pandas pin is there intentionally. Databricks Connect release notes say supported pandas versions are currently limited to 1.0.5<=pandas<3 to avoid breakage in pyspark.pandas workloads after the pandas 3.0.0 release.

Fully agree that pandas 3 support will matter. It likely needs proper compatibility work across Databricks Connect and pandas API on Spark before the restriction can be lifted safely. Hopefully that lands soon.

SergejK
New Contributor II

Hello, is there a timeframe when the pandas 3.0 support will be implemented?

Brahmareddy
Esteemed Contributor II

Hi @SergejK,

Good question! As of now, I haven't seen an official ETA from Databricks for pandas 3.0 support in Databricks Connect.

The current restriction (pandas<3) was introduced to prevent compatibility issues with the pandas API on Spark (pyspark.pandas).

For now, I would recommend staying on pandas 2.x for Databricks Connect workloads. Hopefully, the Databricks team can share an estimated timeline, as more teams are moving toward pandas 3.0.

You can track updates here: https://docs.databricks.com/aws/en/release-notes/dbconnect

Hope this helps!

SergejK
New Contributor II

Hi, it seems pyspark already has support for pandas 3.0 to some extend. So this might be solvable now. I am already using 3.x.

saurabh18cs
Esteemed Contributor

Hi @Albertino pandas api on spark? pandas-on-spark
import pyspark.pandas as ps

Albertino
New Contributor III

To me the main issue is that I cannot cleanly install pandas3 with databricks-connect. I am not using pandas with databricks, I am using pandas in a different part of the code, but i cannot install them together without a hack because of the pin.

tajamulkhan
Honored Contributor II

The important distinction here is between pandas 3 compatibility with PySpark and the dependency constraints declared by a particular Databricks Connect release.

Even if some PySpark operations work with pandas 3, that does not automatically establish compatibility with every Databricks Connect version.

I would verify the installed version and its published dependencies before changing the environment.

A simple check is:

python -m pip show databricks-connect pandas

Then inspect the dependency resolution using:

python -m pip check

If the selected Databricks Connect release requires pandas below version 3, I would keep pandas 2.x in that environment rather than force-installing pandas 3.

For example, a project needing pandas 3 for local analytics could use a separate virtual environment while its Databricks Connect integration tests remain on a supported combination.

I would also add a small compatibility test covering DataFrame creation, conversion to pandas and any pandas API on Spark operations used by the application.

The definitive answer depends on the exact Databricks Connect version and its release notes.

Which Databricks Connect version are you testing with pandas 3?