You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2026/06/16 21:19:14 UTC
(superset) branch master updated: fix(deps): replace deprecated np.NaN with np.nan (#41118)
This is an automated email from the ASF dual-hosted git repository.
eschutho pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new f1ae6839237 fix(deps): replace deprecated np.NaN with np.nan (#41118)
f1ae6839237 is described below
commit f1ae683923710ab68c2fa9d3558bdfc28b73f1b8
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Tue Jun 16 14:19:08 2026 -0700
fix(deps): replace deprecated np.NaN with np.nan (#41118)
Co-authored-by: Claude Sonnet 4.6 <no...@anthropic.com>
---
superset/models/helpers.py | 2 +-
tests/unit_tests/pandas_postprocessing/test_resample.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/superset/models/helpers.py b/superset/models/helpers.py
index 2a308544333..3ebc3f6dd72 100644
--- a/superset/models/helpers.py
+++ b/superset/models/helpers.py
@@ -1947,7 +1947,7 @@ class ExploreMixin: # pylint: disable=too-many-public-methods
if offset_metrics_df.empty:
offset_metrics_df = pd.DataFrame(
{
- col: [np.NaN]
+ col: [np.nan]
for col in join_keys + list(metrics_mapping.values())
}
)
diff --git a/tests/unit_tests/pandas_postprocessing/test_resample.py b/tests/unit_tests/pandas_postprocessing/test_resample.py
index 207863ab879..7c742de8f36 100644
--- a/tests/unit_tests/pandas_postprocessing/test_resample.py
+++ b/tests/unit_tests/pandas_postprocessing/test_resample.py
@@ -253,7 +253,7 @@ def test_resample_linear():
]
),
data={
- "label": ["a", np.NaN, np.NaN, np.NaN, "e", np.NaN, np.NaN, "j"],
+ "label": ["a", np.nan, np.nan, np.nan, "e", np.nan, np.nan, "j"],
"y": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0],
},
)