issue_comments
9 rows where issue = 187591179 and user = 6628425 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- Towards a (temporary?) workaround for datetime issues at the xarray-level · 9 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
276695798 | https://github.com/pydata/xarray/issues/1084#issuecomment-276695798 | https://api.github.com/repos/pydata/xarray/issues/1084 | MDEyOklzc3VlQ29tbWVudDI3NjY5NTc5OA== | spencerkclark 6628425 | 2017-02-01T15:57:29Z | 2017-02-01T15:57:29Z | MEMBER | @shoyer @jhamman I will defer to both of you on this issue. In light of recent discussion, what do you think is the preferred approach? It seems like three avenues have been discussed (here and in pandas-dev/pandas#15258):
It's not immediately obvious to me that avenues 2 and 3 would be clean and straightforward, but if there is a way to easily adapt them for custom calendars — even unusual ones like "all-leap" (29-day Februaries every year) and "360-day" (30-day Februaries every year) calendars, which cannot be fully represented by ordinary Are we back to the drawing board, or should we continue along the path of avenue 1? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Towards a (temporary?) workaround for datetime issues at the xarray-level 187591179 | |
275962520 | https://github.com/pydata/xarray/issues/1084#issuecomment-275962520 | https://api.github.com/repos/pydata/xarray/issues/1084 | MDEyOklzc3VlQ29tbWVudDI3NTk2MjUyMA== | spencerkclark 6628425 | 2017-01-30T01:20:37Z | 2017-01-30T01:20:37Z | MEMBER |
Sure thing -- for now I've left things as they are, but I'll take this advice if we decide otherwise.
I hadn't thought about that; I agree it would be nice to have that flexibility if needed. Just to indicate some more progress here, I've updated the gist with @shoyer's date parser, which eliminates issues for years less than 100 (thanks again!), and some additional modifications needed to add support for use in Series and DataFrame objects. I've started to work on writing some unit tests offline; if there is nothing glaring in the updated gist, I may post a work-in-progress PR in the next week or so, where we can discuss the finer details of the implementation of the NetCDFTimeIndex (and its tests), and how we might want to integrate it into xarray. Does that sound like a reasonable idea? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Towards a (temporary?) workaround for datetime issues at the xarray-level 187591179 | |
274379117 | https://github.com/pydata/xarray/issues/1084#issuecomment-274379117 | https://api.github.com/repos/pydata/xarray/issues/1084 | MDEyOklzc3VlQ29tbWVudDI3NDM3OTExNw== | spencerkclark 6628425 | 2017-01-23T01:48:09Z | 2017-01-23T01:48:09Z | MEMBER | @shoyer many thanks for the ISO-8601 date parser! That should be pretty straightforward to swap with the logic I use for date parsing in the gist, and will be much more robust.
Would it be safer to name the implementation of
Yes, this would be interesting to try. I'll test things out tomorrow and see how it goes. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Towards a (temporary?) workaround for datetime issues at the xarray-level 187591179 | |
274367967 | https://github.com/pydata/xarray/issues/1084#issuecomment-274367967 | https://api.github.com/repos/pydata/xarray/issues/1084 | MDEyOklzc3VlQ29tbWVudDI3NDM2Nzk2Nw== | spencerkclark 6628425 | 2017-01-22T23:10:49Z | 2017-01-22T23:12:14Z | MEMBER | Thanks @shoyer. It appears using the In [10]: p._parse('0016-01-01', yearfirst=True, dayfirst=False)
Out[10]: (_result(year=16, month=1, day=1), None)
In [12]: p._parse('0001', yearfirst=True, dayfirst=False)
Out[12]: (_result(day=1), None)
I'm not particularly tied to one date parsing approach over another (here I was just mimicking pandas). In an ideal world, what would be your preference? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Towards a (temporary?) workaround for datetime issues at the xarray-level 187591179 | |
274362263 | https://github.com/pydata/xarray/issues/1084#issuecomment-274362263 | https://api.github.com/repos/pydata/xarray/issues/1084 | MDEyOklzc3VlQ29tbWVudDI3NDM2MjI2Mw== | spencerkclark 6628425 | 2017-01-22T21:46:25Z | 2017-01-22T21:46:25Z | MEMBER | @shoyer @jhamman outside of an upstream issue in If you think this is a path forward here, I suppose the next order of business would be for me to open up an issue in For instance, I would expect line 5 to produce a date with In [2]: dateutil.version Out[2]: '2.5.3' In [3]: from dateutil import parser In [4]: p = parser.parser() In [5]: p._parse('0001-01-16') Out[5]: (_result(year=16, month=1, day=1), None) In [6]: p._parse('0016-01-01') Out[6]: (_result(year=16, month=1, day=1), None) ``` and here I would want line 7 to return a result with In [8]: p._parse('0100') Out[8]: (_result(year=100), None) ``` I recognize that I'm using the private API version of the parse function; however this is also what pandas does in its core (to enable picking off the resolution of the string specified). It has the additional use for me here of allowing me to convert the Thanks again for your help. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Towards a (temporary?) workaround for datetime issues at the xarray-level 187591179 | |
270036251 | https://github.com/pydata/xarray/issues/1084#issuecomment-270036251 | https://api.github.com/repos/pydata/xarray/issues/1084 | MDEyOklzc3VlQ29tbWVudDI3MDAzNjI1MQ== | spencerkclark 6628425 | 2017-01-03T00:27:49Z | 2017-01-03T00:27:49Z | MEMBER | @shoyer that all sounds good. I'll get to work over the next few weeks and see what I can do. Thanks for your help. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Towards a (temporary?) workaround for datetime issues at the xarray-level 187591179 | |
269845642 | https://github.com/pydata/xarray/issues/1084#issuecomment-269845642 | https://api.github.com/repos/pydata/xarray/issues/1084 | MDEyOklzc3VlQ29tbWVudDI2OTg0NTY0Mg== | spencerkclark 6628425 | 2016-12-31T03:01:57Z | 2016-12-31T03:01:57Z | MEMBER | Thanks @jhamman, that's great to hear. At this moment I don't have any concrete things I'm waiting on from you. I haven't had the chance to iterate more on this since last month, but as I've thought about it more, for the custom datetime index to really "feel" like the pandas That being said, before pushing too far ahead, I think it's probably important to put things in a form that's more amenable to code review, testing, and collaboration. From a mechanics perspective, do we want this sort of index to live totally inside |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Towards a (temporary?) workaround for datetime issues at the xarray-level 187591179 | |
265174968 | https://github.com/pydata/xarray/issues/1084#issuecomment-265174968 | https://api.github.com/repos/pydata/xarray/issues/1084 | MDEyOklzc3VlQ29tbWVudDI2NTE3NDk2OA== | spencerkclark 6628425 | 2016-12-06T15:13:41Z | 2016-12-06T15:13:41Z | MEMBER | @shoyer brings up a good point regarding partial datetime string indexing. For instance in my basic example, indexing with truncated string dates of the form This would mean that the same string specification could have different behavior for For instance, using the current setup in my basic example with sub-daily resolution data, selecting a time using Out [22] <xarray.DataArray ()> array(0) Coordinates: time object 2000-01-01 00:00:00 ``` but using a ``` In [23] from datetime import datetime In [24] dates = [datetime(2000, 1, 1, 0), datetime(2000, 1, 1, 3)] In [25] da = xr.DataArray(np.arange(2), coords=[dates], dims=['time']) In [26] da.sel(time='2000-01-01') Out [26] <xarray.DataArray (time: 2)> array([0, 1]) Coordinates: * time (time) datetime64[ns] 2000-01-01 2000-01-01T03:00:00 ``` I think if we were to include string-based indexing, it would be best if it were completely consistent with the So ultimately this raises the question, would we want to add just the field accessors to enable group-by operations for now and add string-based selection (and other features like |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Towards a (temporary?) workaround for datetime issues at the xarray-level 187591179 | |
264742277 | https://github.com/pydata/xarray/issues/1084#issuecomment-264742277 | https://api.github.com/repos/pydata/xarray/issues/1084 | MDEyOklzc3VlQ29tbWVudDI2NDc0MjI3Nw== | spencerkclark 6628425 | 2016-12-04T23:58:12Z | 2016-12-04T23:58:12Z | MEMBER | @shoyer @jhamman this is my first time digging in to the internals of pandas / xarray, so please forgive me if this is off-track, but I've started experimenting with a subclass of As a proof of concept, it currently enables groupby operations through a crude version of the I have yet to look into serialization or how / if this could be integrated into xarray, but does this seem like an approach worth pursuing to address this issue? cc @spencerahill |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Towards a (temporary?) workaround for datetime issues at the xarray-level 187591179 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 1