home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

7 rows where user = 20617032 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 4

  • Cannot plot multiindexed (stacked) coordinate as hue variable 3
  • make text wrap width an argument in label_from_attrs 2
  • Updated text for indexing page 1
  • Resample excecution time is significantly longer in version 0.12 than 0.11 1

user 1

  • aspitarl · 7 ✖

author_association 1

  • NONE 7
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
970851123 https://github.com/pydata/xarray/issues/4562#issuecomment-970851123 https://api.github.com/repos/pydata/xarray/issues/4562 IC_kwDOAMm_X8453gMz aspitarl 20617032 2021-11-16T23:39:09Z 2021-11-16T23:39:09Z NONE

I tested the method of adding a new level with mi.values, which worked, though x='x' must still be specified:

``` import numpy as np import pandas as pd import xarray as xr

data = np.random.rand(50,5)

x_idx = np.linspace(0, 50)

mi_idx1 = ['a','b','c','d','e'] mi_idx2 = [1,2,3,4,5]

mi = pd.MultiIndex.from_arrays([mi_idx1,mi_idx2], names=['mi_idx1', 'mi_idx2'])

coords = { 'x': x_idx, 'mi': mi }

da = xr.DataArray(data, coords=coords, dims = ['x', 'mi'])

da = da.assign_coords(mi_plot = ('mi', da.indexes['mi'].values)) # add a level for plot display

da.plot(hue='mi_plot', x='x') ```

It seems like this potentially happen behind the scenes, but I'm not sure.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Cannot plot multiindexed (stacked) coordinate as hue variable  735523592
969329589 https://github.com/pydata/xarray/issues/2410#issuecomment-969329589 https://api.github.com/repos/pydata/xarray/issues/2410 IC_kwDOAMm_X845xsu1 aspitarl 20617032 2021-11-15T21:17:14Z 2021-11-15T21:17:14Z NONE

It appears there is an incorrect statement in the 'indexing' section of the terminology page.

By construction, len(arr.dims) == len(arr.indexes)

But this simple code does not reproduce this result

``` da = xr.DataArray(np.random.randn(2, 3), dims=("x", "y"), coords={"x": [10, 20]})

len(da.dims) == len(da.indexes)

False ```

Because the dimension y does not have any coordinates associated with it. Maybe I am missing something, but it seems a clarification should be added that this is only true for dimensions with coordinates assigned to them.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Updated text for indexing page 359240638
728363355 https://github.com/pydata/xarray/issues/4562#issuecomment-728363355 https://api.github.com/repos/pydata/xarray/issues/4562 MDEyOklzc3VlQ29tbWVudDcyODM2MzM1NQ== aspitarl 20617032 2020-11-16T22:17:28Z 2020-11-16T22:18:28Z NONE

I tested this (hue="mi_idx1") and it does not work.

I get the following error on 0.15.1:

ValueError: y must be a dimension name if x is not supplied

and on 0.16.1:

ValueError: ('mi', 'mi') must be a permuted list of ('x', 'mi'), unless...is included

(also, sorry, I accidentally clicked close and comment)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Cannot plot multiindexed (stacked) coordinate as hue variable  735523592
721360380 https://github.com/pydata/xarray/issues/4562#issuecomment-721360380 https://api.github.com/repos/pydata/xarray/issues/4562 MDEyOklzc3VlQ29tbWVudDcyMTM2MDM4MA== aspitarl 20617032 2020-11-03T20:34:02Z 2020-11-03T20:34:02Z NONE

It makes sense to allow a MultiIndex as a label but probably not as a coordinate

To elaborate a little more on my particular use case, as it might give insight or an alternative solution: I often have time data taken under different experimental parameters, which are my coordinates. However, often the coordinate matrix is very sparse, meaning that my coordinate matrix might be 5x5x5, but I only have 10 data points or so somewhat randomly sampling this space. So being able to see all my 'test cases' with respect to hue/col etc is very useful to quickly examine the data and coordinate combinations, which helps once I want to unstack the array deal with all of the empty parameter space.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Cannot plot multiindexed (stacked) coordinate as hue variable  735523592
685859785 https://github.com/pydata/xarray/pull/4067#issuecomment-685859785 https://api.github.com/repos/pydata/xarray/issues/4067 MDEyOklzc3VlQ29tbWVudDY4NTg1OTc4NQ== aspitarl 20617032 2020-09-02T16:44:06Z 2020-09-02T16:44:06Z NONE

@TomNicholas Hi, any update on this being able to get implemented? Should I resolve the merge conflicts?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  make text wrap width an argument in label_from_attrs 619327957
630590932 https://github.com/pydata/xarray/pull/4067#issuecomment-630590932 https://api.github.com/repos/pydata/xarray/issues/4067 MDEyOklzc3VlQ29tbWVudDYzMDU5MDkzMg== aspitarl 20617032 2020-05-19T05:34:28Z 2020-05-19T05:34:28Z NONE

I have no plans to alter xarray further in ways that make use of this function. I have simply been importing the function for use on its own in scripts/notebooks and have needed to change the wrap width. I don't think it necessarily needs to be added to the public API.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  make text wrap width an argument in label_from_attrs 619327957
526008533 https://github.com/pydata/xarray/issues/3267#issuecomment-526008533 https://api.github.com/repos/pydata/xarray/issues/3267 MDEyOklzc3VlQ29tbWVudDUyNjAwODUzMw== aspitarl 20617032 2019-08-29T03:44:42Z 2019-08-29T03:44:42Z NONE

I seem to still have a discrepancy

Elapsed time: 1.3887653350830078 xarray version: 0.12.3+79.gaaeea625

Elapsed time: 0.12198281288146973 xarray version: 0.11.3

(This is on a different computer)

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Resample excecution time is significantly longer in version 0.12 than 0.11 485508509

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