diff --git a/requirements/base.txt b/requirements/base.txt index ead18fba5..b96944829 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 dc2f4e208..dcfc3726b 100644 --- a/setup.py +++ b/setup.py @@ -100,7 +100,7 @@ setup( "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 86ef27139..2bfc6f4be 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: