home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1397286186

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/7441#issuecomment-1397286186 https://api.github.com/repos/pydata/xarray/issues/7441 1397286186 IC_kwDOAMm_X85TSOUq 6628425 2023-01-19T16:45:24Z 2023-01-19T17:16:31Z MEMBER

Thanks @keewis.

I think this is a bug in pandas: pd.Timestamp("1-01-01 00:00:00") returns a date in 2001.

I suspect this may be related to the comment here.

In any case, t.isoformat(sep=" ") should return the year with 4 digits so maybe we should use that instead? (once again, it doesn't, but that I think is also a bug, maybe the same one?)

Though indeed the isoformat behavior is definitely a bug and it would be fair to at least expect this kind of roundtrip to hold, but it doesn't: ```

import pandas as pd pd.Timestamp(str(pd.Timestamp("0001-01-01"))) Timestamp('2001-01-01 00:00:00') ```

I can report that to pandas. It's not necessarily surprising considering that it previously was not possible to write pd.Timestamp("0001-01-01").

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1533980729
Powered by Datasette · Queries took 0.72ms · About: xarray-datasette