home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

8 rows where user = 8419157 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 6

  • Suggestion: interpolation of non-numerical data 2
  • xarray=1.15.1 regression: Groupby drop multi-index 2
  • Can't re-save netCDF after opening it and modifying it? 1
  • adding stack_all 1
  • ValueError: buffer source array is read-only with apply_ufunc 1
  • Dataset plot line 1

user 1

  • DancingQuanta · 8 ✖

author_association 1

  • NONE 8
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
663157223 https://github.com/pydata/xarray/issues/4235#issuecomment-663157223 https://api.github.com/repos/pydata/xarray/issues/4235 MDEyOklzc3VlQ29tbWVudDY2MzE1NzIyMw== DancingQuanta 8419157 2020-07-23T18:15:33Z 2020-07-23T18:18:24Z NONE

To give a bit more context, an example code simulating an experimental measurement. ``` import numpy as np import xarray as xr from scipy.stats import norm from matplotlib import pyplot as plt

nominal x

x = xr.DataArray(np.arange(-10, 10, 0.1), dims='index', name='x')

Shift loc

loc = xr.DataArray(np.arange(-0.5, 1, 0.5), dims='loc', name='loc')

Number of experiments

exp = xr.DataArray(range(3), dims='exp', name='exp')

Add noise to x per experiment

noise = xr.DataArray(np.random.rand(len(x), len(loc)), coords={'loc': loc}, dims=['index', 'loc']) x = x + noise * 0.5

Measure

y = xr.apply_ufunc( norm.pdf, x, x['loc'], 1, input_core_dims=[['index'], [], []], output_core_dims=[['index']], vectorize=True )

Name

x.name = 'x' y.name = 'y'

Merge

data = xr.merge([x, y]) I wish to be able to use this

Plot y against x

data.plot.line(x='x', y='y', hue='loc') However, the closest I could get is with only `y` y.plot.line(x='index', hue='loc') ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Dataset plot line 659142025
650800165 https://github.com/pydata/xarray/issues/3985#issuecomment-650800165 https://api.github.com/repos/pydata/xarray/issues/3985 MDEyOklzc3VlQ29tbWVudDY1MDgwMDE2NQ== DancingQuanta 8419157 2020-06-28T17:53:49Z 2020-06-28T17:53:49Z NONE

Sorry for the late reply. I have been using this function in my projects and as such it is minimum functional. However, I will try to investigate a simpler example that replicate the issue.

Lastly, perhaps you have a better idea for groupby over multi-dimension without stacking the dimensions?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xarray=1.15.1 regression: Groupby drop multi-index 603309899
616650521 https://github.com/pydata/xarray/issues/3985#issuecomment-616650521 https://api.github.com/repos/pydata/xarray/issues/3985 MDEyOklzc3VlQ29tbWVudDYxNjY1MDUyMQ== DancingQuanta 8419157 2020-04-20T16:05:02Z 2020-04-20T16:05:02Z NONE

Using git bisect I am able to narrow down to this PR #3807 that introduced the regression.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xarray=1.15.1 regression: Groupby drop multi-index 603309899
583874997 https://github.com/pydata/xarray/issues/3763#issuecomment-583874997 https://api.github.com/repos/pydata/xarray/issues/3763 MDEyOklzc3VlQ29tbWVudDU4Mzg3NDk5Nw== DancingQuanta 8419157 2020-02-09T18:07:00Z 2020-02-09T18:07:00Z NONE

I suggest that in order to convince xarrsy developers to help you is to provide an example data and show what you have tried with your string encoding solution and describe applications for the method. You should check out pandas which xarrsy extends and is more widely used then xarray. Hopefully someone have a similar problem as you with pandas and you can write here how to apply their solutions.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Suggestion: interpolation of non-numerical data 562075354
583840504 https://github.com/pydata/xarray/issues/3763#issuecomment-583840504 https://api.github.com/repos/pydata/xarray/issues/3763 MDEyOklzc3VlQ29tbWVudDU4Mzg0MDUwNA== DancingQuanta 8419157 2020-02-09T12:39:08Z 2020-02-09T12:39:08Z NONE

Sounds like a technique in data science, encoding strings, which is actually number of different techniques.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Suggestion: interpolation of non-numerical data 562075354
577589279 https://github.com/pydata/xarray/issues/3715#issuecomment-577589279 https://api.github.com/repos/pydata/xarray/issues/3715 MDEyOklzc3VlQ29tbWVudDU3NzU4OTI3OQ== DancingQuanta 8419157 2020-01-23T09:04:19Z 2020-01-23T09:04:19Z NONE

I could raise an issue on scipy's end and see what they says.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ValueError: buffer source array is read-only with apply_ufunc 553672182
526635815 https://github.com/pydata/xarray/pull/3115#issuecomment-526635815 https://api.github.com/repos/pydata/xarray/issues/3115 MDEyOklzc3VlQ29tbWVudDUyNjYzNTgxNQ== DancingQuanta 8419157 2019-08-30T15:02:45Z 2019-08-30T15:02:45Z NONE

Would it be possible to add exclude_dims? I have a use case where I wanted to apply a function (for example fitting) along a dimension. I programmatically create a list of dimensions to stack to create 2D dataset. Then I loop over the stacked dimension and apply the function to last dimension.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  adding stack_all 467767771
451731920 https://github.com/pydata/xarray/issues/2029#issuecomment-451731920 https://api.github.com/repos/pydata/xarray/issues/2029 MDEyOklzc3VlQ29tbWVudDQ1MTczMTkyMA== DancingQuanta 8419157 2019-01-06T10:46:39Z 2019-01-06T10:46:39Z NONE

I assumed that using a with statement I have loaded the data into memory and closing the file. with xr.open_dataset(path) as ds: data = ds However this does not load into memory entirely and so lazy loading is still in effect. So using .load does what I wanted with xr.open_dataset(path) as ds: data = ds.load()

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Can't re-save netCDF after opening it and modifying it? 309949357

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 2640.184ms · About: xarray-datasette