You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0 CH4 * gigagram / a
1 CO * gigagram / a
2 CO2 * gigagram / a
3 N2O * gigagram / a
4 NMVOC * gigagram / a
5 NOx * gigagram / a
6 SO2 * gigagram / a
Name: unit, dtype: object
Output for Python 3.12.2:
/Users/danielbusch/Documents/UNFCCC_non-AnnexI_data/venv/lib/python3.12/site-packages/xarray/namedarray/core.py:215: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
return NamedArray(dims, np.asarray(data), attrs)
/Users/danielbusch/Documents/UNFCCC_non-AnnexI_data/venv/lib/python3.12/site-packages/xarray/namedarray/core.py:215: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
return NamedArray(dims, np.asarray(data), attrs)
/Users/danielbusch/Documents/UNFCCC_non-AnnexI_data/venv/lib/python3.12/site-packages/xarray/namedarray/core.py:215: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
return NamedArray(dims, np.asarray(data), attrs)
/Users/danielbusch/Documents/UNFCCC_non-AnnexI_data/venv/lib/python3.12/site-packages/xarray/namedarray/core.py:215: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
return NamedArray(dims, np.asarray(data), attrs)
/Users/danielbusch/Documents/UNFCCC_non-AnnexI_data/venv/lib/python3.12/site-packages/xarray/namedarray/core.py:215: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
return NamedArray(dims, np.asarray(data), attrs)
/Users/danielbusch/Documents/UNFCCC_non-AnnexI_data/venv/lib/python3.12/site-packages/xarray/namedarray/core.py:215: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
return NamedArray(dims, np.asarray(data), attrs)
/Users/danielbusch/Documents/UNFCCC_non-AnnexI_data/venv/lib/python3.12/site-packages/xarray/namedarray/core.py:215: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
return NamedArray(dims, np.asarray(data), attrs)
/Users/danielbusch/Documents/UNFCCC_non-AnnexI_data/venv/lib/python3.12/site-packages/xarray/namedarray/core.py:215: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
return NamedArray(dims, np.asarray(data), attrs)
/Users/danielbusch/Documents/UNFCCC_non-AnnexI_data/venv/lib/python3.12/site-packages/xarray/namedarray/core.py:215: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
return NamedArray(dims, np.asarray(data), attrs)
/Users/danielbusch/Documents/UNFCCC_non-AnnexI_data/venv/lib/python3.12/site-packages/xarray/namedarray/core.py:215: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
return NamedArray(dims, np.asarray(data), attrs)
0 no unit
1 no unit
2 no unit
3 no unit
4 no unit
5 no unit
6 no unit
Name: unit, dtype: object
Expected behavior
The sum function should calculate the sum over the given dimension and keep all the unit information.
System (please complete the following information):
OS: [macOS]
Python version 3.12.2
The text was updated successfully, but these errors were encountered:
Describe the bug
The function
pr.sum
removes the units in a dataset for Python version 3.12.2Failing Test
github_issue_ds_1.csv
Output for Python 3.10.13:
Output for Python 3.12.2:
Expected behavior
The sum function should calculate the sum over the given dimension and keep all the unit information.
System (please complete the following information):
The text was updated successfully, but these errors were encountered: