-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xarray round-tripping #22
Comments
If we create a proper DataSet object within Pyleoclim from a Series, xarray will need to become a dependency of the package |
Didn't we already decide to bite that bullet when we wrote PaleoCube? I thought this was high on your list. If it's not, I'm happy to put that in another package ( |
It could be an optional dependency, which you only import within the |
@MarcoGorelli I was thinking about doing that so it won't affect the package too much. Was just reading about the pros and cons. |
This point is moot as our current dependencies include
|
I would keep two environment files. One that is unpinned for general package usage, and a specialized one for the hub that has pins to ensure things work. Generally, its good practice to keep your environment as unpinned as possible. Reasoning:
For your usage of pyleoclim on the hub, you need a different type of environment. This one really needs to be consistent and reliable. In this case, it should be pinned down. The caveat here is that it will slowly get out of date, so you need to have a maintenance place to revisit it every once in a while (maybe quarterly). To do this, you'll remove all the pins, solve, then put all the updated pins back. |
Once pandas 2.0 is release, we would expect this to work:
However, this fails with:
Xarray is using After playing with xarray itself for a bit to see if I can find a workaround, it looks like it can handle really large dates (e.g 9000) if they are specified properly, but it fails to parse
|
Issue opened in xarray: pydata/xarray#7493 |
Do you need anything else from us (Quansight) on this issue? |
No, this is going to be with xarray directly. |
Indeed, we'll leave it open until we've resolved that issue, but QuanSight is relieved from duty on this one! |
Enable Xarray round-trip with 2 functions
Series.to_xarray()
/Series.from_xarray()
. Xarray is built on top of pandas, so there area already rules for how to do this, but they need to be adapted to deal with metadata, for instance.Delicate points:
The text was updated successfully, but these errors were encountered: