Closed juliettelavoie closed 1 year ago
Dang, I didn't think of that!
I think we'll be able to pin pandas >= 2 and get rid of all this superfetatoire Period
machinery. I'll do both in an upcoming PR.
A note regarding moving to pandas 2.0 for non-nanosecond units of time. It doesn't work in xarray yet. https://github.com/pydata/xarray/blob/799f12d756f9edf1a40188461cf3833a0788af82/xarray/core/variable.py#L72
Since we only use non-nanosecond units of time for catalog-related functions, I think this is fine?
I don't know enough about that part of the code, but I just ran into that issue in another project, so I thought I'd mention it.
Setup Information
Description
I am trying to build a path for
pr_day_KACE-1-0-G_piControl_r1i1p1f1_gr_24000101-24491230.nc
and it doesn't work because of the date.Steps To Reproduce
I get:
Additional context
I thought we had fixed this with periods?
Also, I am using pandas 2.0.2. I think we can have units larger than nanoseconds. This might be a way to solve this.
Contribution