Skip to content

Commit

Permalink
Pin pandas to <=1.5.3 for Interactive (#26377)
Browse files Browse the repository at this point in the history
Co-authored-by: xqhu <[email protected]>
  • Loading branch information
liferoad and liferoad authored Apr 21, 2023
1 parent f2570ad commit 4865221
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions sdks/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,14 @@ def cythonize(*args, **kwargs):
else:
pyarrow_dependency = 'pyarrow>=3.0.0,<12.0.0'

# Exclude pandas<=1.4.2 since it doesn't work with numpy 1.24.x.
# Exclude 1.5.0 and 1.5.1 because of
# https://github.com/pandas-dev/pandas/issues/45725
dataframe_dependency = [
'pandas<1.6.0;python_version=="3.7"',
'pandas>=1.4.3,!=1.5.0,!=1.5.1,<1.6;python_version>="3.8"',
]


# We must generate protos after setup_requires are installed.
def generate_protos_first():
Expand Down Expand Up @@ -327,7 +335,7 @@ def get_portability_package_data():
# https://github.com/jupyter/jupyter_client/issues/637
'jupyter-client>=6.1.11,!=6.1.13,<8.1.1',
'timeloop>=1.0.2,<2',
],
] + dataframe_dependency,
'interactive_test': [
# notebok utils
'nbformat>=5.0.5,<6',
Expand All @@ -344,13 +352,7 @@ def get_portability_package_data():
'azure-core>=1.7.0,<2',
'azure-identity>=1.12.0,<2',
],
# Exclude pandas<=1.4.2 since it doesn't work with numpy 1.24.x.
# Exclude 1.5.0 and 1.5.1 because of
# https://github.com/pandas-dev/pandas/issues/45725
'dataframe': [
'pandas<1.6.0;python_version=="3.7"',
'pandas>=1.4.3,!=1.5.0,!=1.5.1,<1.6;python_version>="3.8"',
],
'dataframe': dataframe_dependency,
'dask': [
'dask >= 2022.6',
'distributed >= 2022.6',
Expand Down

0 comments on commit 4865221

Please sign in to comment.