Open edwardreed81 opened 2 weeks ago
Thanks for opening your first issue here at xarray! Be sure to follow the issue template! If you have an idea for a solution, we would really welcome a Pull Request with proposed changes. See the Contributing Guide for more. It may take us a while to respond here, but we really value your contribution. Contributors like you help make xarray better. Thank you!
Confirmed as a bug
What happened?
Converted a Pandas
DataFrame
containing a column of typepandas.Int64Dtype()
into an XarrayDataset
. The data variable doesn't get converted to an Xarray compatible type:Additionally, this causes an exception if the Dataset is pickled and subsequently loaded:
RecursionError: maximum recursion depth exceeded
What did you expect to happen?
The data variable ends up as
int64
type. Pickling the Dataset works properly.Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
Xarray 2024.9.0 does not exhibit this behavior.
Environment