From 1e46b2ee8f439703606757472769c10fb7586d83 Mon Sep 17 00:00:00 2001 From: mutricyl <118692416+mutricyl@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:49:42 +0200 Subject: [PATCH] 2035 pandas3 (#2036) --- pint/compat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pint/compat.py b/pint/compat.py index b968803ce..4b4cbab92 100644 --- a/pint/compat.py +++ b/pint/compat.py @@ -240,6 +240,8 @@ def _to_magnitude(value, force_ndarray=False, force_ndarray_like=False): "xarray.core.variable.Variable", "pandas.core.series.Series", "pandas.core.frame.DataFrame", + "pandas.Series", + "pandas.DataFrame", "xarray.core.dataarray.DataArray", )