-
Notifications
You must be signed in to change notification settings - Fork 7
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
Limitation: Unable to store Year 4000 timesteps in a pandas DataFrame. #16
Comments
Looks like an open issue in pandas pandas-dev/pandas#28104 In the meantime I will look for a workaround. Perhaps a workaround would be to return a pandas data frame indexed by Periods as suggested in pandas FAQs https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#representing-out-of-bounds-spans @jshannon-usbr If you have a solution, I am open to a pull request |
Numpy supports the idea of units https://docs.scipy.org/doc/numpy/reference/arrays.datetime.html#datetime-units |
@jshannon-usbr update pyhecdss > 0.4.0 and test again. The fix is currently passing tests and reading the dss file in question. |
@dwr-psandhu This is @jshannon-usbr responding from my personal account. I was finally able to test this scenario on my end and can confirm it is working. For users who stumble upon this situation, here is the resolved console experience:
|
Description
Querying land use data from CalSimHydro input DSS file
CS3_LandUseDU.dss
reveals a timestep limitation inpandas
. CalSimHydro and IDC use the Year 4000 to indicate a repeating time series, but the bounds ofpandas.Timestamp
does not include that year. FYI, Python'sdatetime
standard library is able to handle the Year 4000What I Did
The text was updated successfully, but these errors were encountered: