issues: 748229907
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 748229907 | MDU6SXNzdWU3NDgyMjk5MDc= | 4598 | Calling pd.to_datetime on cftime variable | 17162724 | closed | 0 | 4 | 2020-11-22T12:14:27Z | 2021-02-16T02:42:35Z | 2021-02-16T02:42:35Z | CONTRIBUTOR | It would be nice to be able to convert cftime variables to pandas datetime to utilize the functionality there. I understand this is an upstream issue as pandas probably isn't aware of cftime. However, i'm curious if a method could be added to cftime such as .to_dataframe(). I've found ``` import xarray as xr import numpy as np import pandas as pd date_str = '2020-01-01' date_np = np.datetime64(date_str)
date_cf = xr.cftime_range(start=date_str, periods=1)[0] pd.to_datetime(date_cf)
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/4598/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |