home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 103380276

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
103380276 MDU6SXNzdWUxMDMzODAyNzY= 552 Dataset.to_dataframe() loses datetime64 timezone localization 2002703 closed 0     2 2015-08-26T22:34:11Z 2015-08-29T14:11:46Z 2015-08-29T14:11:46Z CONTRIBUTOR      

Not sure if feature or bug, but definitely made me look twice.

```

ds = xray.Dataset({'time': (['time'], [np.datetime64('2014-04-26T05:00:00-0700')])}) ds.time.values[0] numpy.datetime64('2014-04-26T05:00:00.000000000-0700')

ds.to_dataframe().index[0] Timestamp('2014-04-26 12:00:00') ```

I'd expected to see the DataFrame index maintaining its local timezone info:

Timestamp('2014-04-26 05:00:00-0700', tz='America/Los_Angeles')

That said, the UTC that I actually get back is the same time so math should still work. I'm opening this issue mostly as a matter for discussion -- feel free to close if you think xray should be pushing users towards UTC.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/552/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 77.797ms · About: xarray-datasette