issue_comments
11 rows where issue = 134376872 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- save/load DataArray to numpy npz functions · 11 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
269081490 | https://github.com/pydata/xarray/issues/768#issuecomment-269081490 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDI2OTA4MTQ5MA== | fmaussion 10050469 | 2016-12-24T11:55:40Z | 2016-12-24T11:55:40Z | MEMBER | Closing this partly via https://github.com/pydata/xarray/pull/1169 and in favor of https://github.com/pydata/xarray/issues/1154 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 | |
187576763 | https://github.com/pydata/xarray/issues/768#issuecomment-187576763 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDE4NzU3Njc2Mw== | max-sixty 5635139 | 2016-02-23T07:06:58Z | 2016-02-23T07:06:58Z | MEMBER | @jhamman nice! |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 | |
187575468 | https://github.com/pydata/xarray/issues/768#issuecomment-187575468 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDE4NzU3NTQ2OA== | jhamman 2443309 | 2016-02-23T06:58:25Z | 2016-02-23T06:58:25Z | MEMBER | @jonathanstrong - Thanks for the input. I agree, we could spice up our IO docs. Like you, I think it makes sense to play down the pickle serialization method. @MaximilianR
It does. From here:
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 | |
187397477 | https://github.com/pydata/xarray/issues/768#issuecomment-187397477 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDE4NzM5NzQ3Nw== | max-sixty 5635139 | 2016-02-22T21:37:53Z | 2016-02-22T21:37:53Z | MEMBER | I'd vote for something format-specific, such as |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 | |
187373450 | https://github.com/pydata/xarray/issues/768#issuecomment-187373450 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDE4NzM3MzQ1MA== | dopplershift 221526 | 2016-02-22T20:40:36Z | 2016-02-22T20:40:36Z | CONTRIBUTOR | cc @WardF |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 | |
187296721 | https://github.com/pydata/xarray/issues/768#issuecomment-187296721 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDE4NzI5NjcyMQ== | shoyer 1217238 | 2016-02-22T18:02:19Z | 2016-02-22T18:02:19Z | MEMBER | @jonathanstrong this is really helpful feedback! You are right to be suspicious of academics when it comes to file formats :) If you have concrete suggestions for doc improvements along these lines, please do put together a PR! I've thought about the "magic name" approach, too -- my only concern is that it would be weird to get a DataArray back from |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 | |
187245860 | https://github.com/pydata/xarray/issues/768#issuecomment-187245860 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDE4NzI0NTg2MA== | darothen 4992424 | 2016-02-22T16:04:39Z | 2016-02-22T16:04:39Z | NONE | Hi @jonathanstrong, Just thought it would be useful to point out that the people who maintain NetCDF is Unidata, a branch of the University Corporation for Atmospheric Research. In fact, netCDF-4 is essentially built on top of HDF5 - a much more widely-known file format, with first-class support including an I/O layer in pandas. While it would certainly be great to "sell" netCDF as a format in the documentation, those of us who still have to write netCDF-based I/O modules for our Fortran models might have to throw up a little in our mouths when we do so... |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 | |
187226020 | https://github.com/pydata/xarray/issues/768#issuecomment-187226020 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDE4NzIyNjAyMA== | jonathanstrong 5497186 | 2016-02-22T15:17:29Z | 2016-02-22T15:17:29Z | NONE | hey, So - after using netcdf for a few days, definitely not looking back. This is great. By way of background, I am building a way to integrate storage of arbitrary arrays into an otherwise highly-structured schema. After using postgresql arrays flamed out (too slow, even at the raw SQL level), I moved on to saving the file path in my schema. I thought it would be sensible to keep everything in pure ndarray for simplicity. After trying out netcdf, I bit the bullet and wrote constructors for numpy, pandas and xarray types, and it's working great. Looking back, I actually think the documentation could use some work to help people like me, who haven't used netcdf, realize it's great. If you look at the docs, it starts with pickle, which for me is kind of a red flag since from my experience pickle is the world's most flaky persistence method (always has dependency issues). Then at netcdf you start with: "Currently, the only disk based serialization format that xarray directly supports is netCDF." I read this and think, ok so the IO is not really there yet. It's like an apology there aren't more choices. "netCDF is a file format for fully self-described datasets that is widely used in the geosciences and supported on almost all platforms." Hmm...geosciences...who knows what those people are doing? I'm also generally suspicious of academics when it comes to code. "We use netCDF because xarray was based on the netCDF data model, so netCDF files on disk directly correspond to Dataset objects." Ok, so it's easy for you. What about me? I've been a bit over the top but you can see how someone who doesn't use netcdf might read this and think they need to write their own IO functions. If it were me, I would start off selling how great this format is for xarray. Like, "netcdf is a blazing-fast, binary data format that allows transparent, self-describing persistence with zero of the dependency issues you get with pickle or other formats. It allows xarray Datasets to be saved intact and even used in out-of-core computations for larger-than-memory arrays." Or something like that. Finally, regarding DataArray not having it's own method to save: I think this is a deficiency that is easily solved. For me, getting into this library I started with just DataArrays. Now that I am using Datasets I can see how they are pretty dang powerful. But at first the simpler DataArrays were all I was using, and they had no direct IO. To solve this, you could create a "magic" string for DataArrays. On save, to_netcdf converts the da to a Dataset with the magic key. On load, the load function recognizes the magic string and breaks out that DataArray to return it specifically. I think that would be a quick, relatively painless way to give DataArrays equal footing with Datasets. Anyway - my two cents. I am a huge fan of this library and happy to chip in regarding any of the above if desired. Thanks for your hard work on it. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 | |
186492789 | https://github.com/pydata/xarray/issues/768#issuecomment-186492789 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDE4NjQ5Mjc4OQ== | shoyer 1217238 | 2016-02-20T02:37:23Z | 2016-02-20T02:37:23Z | MEMBER |
OK, these are all fair points. Though you probably already have SciPy installed, which is enough for basic netCDF support.
This is true. But converting a DataArray to a Dataset is quite simple:
Yes, choice is good -- but also note that none of those are invented file formats for pandas! I am slightly wary of going down this path, because at the point at which you have a file format that can faithfully represent every xarray object, you have basically reinvented netCDF :). That said, something like JSON is generally useful enough (with a different niche than netCDF) that it could make sense to add IO support. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 | |
185817180 | https://github.com/pydata/xarray/issues/768#issuecomment-185817180 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDE4NTgxNzE4MA== | jonathanstrong 5497186 | 2016-02-18T17:05:45Z | 2016-02-18T17:34:53Z | NONE | I hadn't, for a number of reasons. First, I've used csv, hdf, sql, json, yaml and other formats but never came across netcdf until using this library as someone who isn't working in the physical sciences. Second, the documentation on netcdf is fairly dense. Third, didn't want to deal with installing the library. I just did use it and seems like it is great for Datasets. As far as I can tell there is no way to save DataArrays directly, though? Finally, would note that pandas has io methods for csv, excel, hdf, sql, json, msgpack, html, gbq, stata, "clipboard", and pickle. I think it's a strength to offer more choices. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 | |
185511777 | https://github.com/pydata/xarray/issues/768#issuecomment-185511777 | https://api.github.com/repos/pydata/xarray/issues/768 | MDEyOklzc3VlQ29tbWVudDE4NTUxMTc3Nw== | shoyer 1217238 | 2016-02-18T02:23:13Z | 2016-02-18T02:23:13Z | MEMBER | This is a pretty reasonable way to save data, but my only concern is that it's not clear to me that we need another file format when netCDF already solves this problem, in a completely portable way. Have you tried using xarray's netCDF IO? |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
save/load DataArray to numpy npz functions 134376872 |
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 7