From c8ba8d3827303a81ffbd9aa337a16d4717e616d8 Mon Sep 17 00:00:00 2001 From: EugeneTorap Date: Thu, 1 Sep 2022 08:01:02 +0300 Subject: [PATCH] chore: Bump pandas to 1.4.4 --- requirements/base.txt | 2 +- setup.py | 2 +- superset/utils/pandas_postprocessing/contribution.py | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/requirements/base.txt b/requirements/base.txt index ead18fba5b561..b96944829589e 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -185,7 +185,7 @@ packaging==21.3 # via # bleach # deprecation -pandas==1.4.3 +pandas==1.4.4 # via apache-superset parsedatetime==2.6 # via apache-superset diff --git a/setup.py b/setup.py index dc2f4e208c700..dcfc3726ba2ee 100644 --- a/setup.py +++ b/setup.py @@ -100,7 +100,7 @@ def get_git_sha() -> str: "markdown>=3.0", "msgpack>=1.0.0, <1.1", "numpy==1.22.1", - "pandas>=1.4.3, <1.5", + "pandas>=1.4.4, <1.5", "parsedatetime", "pgsanity", "polyline", diff --git a/superset/utils/pandas_postprocessing/contribution.py b/superset/utils/pandas_postprocessing/contribution.py index 86ef271397291..2bfc6f4be698f 100644 --- a/superset/utils/pandas_postprocessing/contribution.py +++ b/superset/utils/pandas_postprocessing/contribution.py @@ -49,9 +49,6 @@ def contribution( """ contribution_df = df.copy() numeric_df = contribution_df.select_dtypes(include=["number", Decimal]) - # TODO: copy needed due to following regression in 1.4, remove if not needed: - # https://github.com/pandas-dev/pandas/issues/48090 - numeric_df = numeric_df.copy() numeric_df.fillna(0, inplace=True) # verify column selections if columns: