home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where author_association = "MEMBER" and issue = 399309171 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: reactions, created_at (date), updated_at (date)

user 3

  • shoyer 4
  • jhamman 2
  • dcherian 1

issue 1

  • Reshape function works only for numpy array and raise error with xarray variable. · 7 ✖

author_association 1

  • MEMBER · 7 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
455922792 https://github.com/pydata/xarray/issues/2676#issuecomment-455922792 https://api.github.com/repos/pydata/xarray/issues/2676 MDEyOklzc3VlQ29tbWVudDQ1NTkyMjc5Mg== dcherian 2448579 2019-01-21T01:30:58Z 2019-01-21T01:30:58Z MEMBER

You should also check out xr-scipy which wraps a lot of scipy stuff. And also xrft for Fourier transforms

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Reshape function works only for numpy array and raise error with xarray variable. 399309171
455909044 https://github.com/pydata/xarray/issues/2676#issuecomment-455909044 https://api.github.com/repos/pydata/xarray/issues/2676 MDEyOklzc3VlQ29tbWVudDQ1NTkwOTA0NA== shoyer 1217238 2019-01-20T22:35:28Z 2019-01-20T22:35:28Z MEMBER

Generally you'll need to use Dask functions on .data if you want it to be lazy. On Sun, Jan 20, 2019 at 9:56 PM Ahmed Shaaban notifications@github.com wrote:

Thanks ... I am wondering if I used Numpy/Scipy functions on Xarray.data, will such computation is performed under the umbrella of Dask (Lazy evaluation)?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/issues/2676#issuecomment-455906272, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKS1v2mqUzXsYGyLJhSfGH7ZjggyGmbks5vFOYmgaJpZM4aAzSK .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Reshape function works only for numpy array and raise error with xarray variable. 399309171
455704659 https://github.com/pydata/xarray/issues/2676#issuecomment-455704659 https://api.github.com/repos/pydata/xarray/issues/2676 MDEyOklzc3VlQ29tbWVudDQ1NTcwNDY1OQ== shoyer 1217238 2019-01-18T22:12:18Z 2019-01-18T22:12:18Z MEMBER

array_wrap is an old interface that a variety of NumPy functions use (in an apparently hard to predict ways). On Fri, Jan 18, 2019 at 10:07 PM Joe Hamman notifications@github.com wrote:

@ahmedshaaban1 https://github.com/ahmedshaaban1 - You may also want to checkout http://xarray.pydata.org/en/stable/computation.html#wrapping-custom-computation

@shoyer https://github.com/shoyer - can you expand on what you meant about removing the xarray.Variable.array_wrap method? xarray.DataArray also calls this method a few times so we'd have to think about how far to take this.

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/issues/2676#issuecomment-455703570, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKS1vCyEkGabclgpupG-dyLfz1byEBgks5vEkW5gaJpZM4aAzSK .

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Reshape function works only for numpy array and raise error with xarray variable. 399309171
455703570 https://github.com/pydata/xarray/issues/2676#issuecomment-455703570 https://api.github.com/repos/pydata/xarray/issues/2676 MDEyOklzc3VlQ29tbWVudDQ1NTcwMzU3MA== jhamman 2443309 2019-01-18T22:07:53Z 2019-01-18T22:07:53Z MEMBER

@ahmedshaaban1 - You may also want to checkout http://xarray.pydata.org/en/stable/computation.html#wrapping-custom-computation

@shoyer - can you expand on what you meant about removing the xarray.Variable.__array_wrap__ method? xarray.DataArray also calls this method a few times so we'd have to think about how far to take this.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Reshape function works only for numpy array and raise error with xarray variable. 399309171
455427016 https://github.com/pydata/xarray/issues/2676#issuecomment-455427016 https://api.github.com/repos/pydata/xarray/issues/2676 MDEyOklzc3VlQ29tbWVudDQ1NTQyNzAxNg== shoyer 1217238 2019-01-18T04:50:57Z 2019-01-18T04:50:57Z MEMBER

In general you need to apply NumPy/scipy functions on the .data attribute of an xarray object, and recreate the labels. On Thu, Jan 17, 2019 at 10:54 PM Ahmed Shaaban notifications@github.com wrote:

Thanks a lot for your answer. I am a novice to Xarray, and I am a heavy user of NumPy. Numpy FFT function works fine with Xarray variables, yet it returns NumPy array. NumPy reshape function, as mentioned above, does not work with Xarray variable. I am not yet able to understand how to use the power of Xarray and at the same time be able to use the math/statistics function of Numpy/SciPy.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pydata/xarray/issues/2676#issuecomment-455328352, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKS1tukf4ORIr1y47XKOTaQF10b06aNks5vEOL5gaJpZM4aAzSK .

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Reshape function works only for numpy array and raise error with xarray variable. 399309171
455180151 https://github.com/pydata/xarray/issues/2676#issuecomment-455180151 https://api.github.com/repos/pydata/xarray/issues/2676 MDEyOklzc3VlQ29tbWVudDQ1NTE4MDE1MQ== shoyer 1217238 2019-01-17T13:56:21Z 2019-01-17T13:56:21Z MEMBER

We should probably remove the xarray.Variable.__array_wrap__ method

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Reshape function works only for numpy array and raise error with xarray variable. 399309171
455050134 https://github.com/pydata/xarray/issues/2676#issuecomment-455050134 https://api.github.com/repos/pydata/xarray/issues/2676 MDEyOklzc3VlQ29tbWVudDQ1NTA1MDEzNA== jhamman 2443309 2019-01-17T05:44:56Z 2019-01-17T05:44:56Z MEMBER

@ahmedshaaban1 - what is the expected output you'd like to get from a reshape call. You may already know that xarray doesn't have a reshape method. Usually, stack/unstack are used to "reshape" DataArrays.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Reshape function works only for numpy array and raise error with xarray variable. 399309171

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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]);
Powered by Datasette · Queries took 15.847ms · About: xarray-datasette