home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 469344355 and user = 1217238 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • shoyer · 1 ✖

issue 1

  • Plotting with 2d coordinates, error in transposed coordinate · 1 ✖

author_association 1

  • MEMBER 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
512591623 https://github.com/pydata/xarray/issues/3138#issuecomment-512591623 https://api.github.com/repos/pydata/xarray/issues/3138 MDEyOklzc3VlQ29tbWVudDUxMjU5MTYyMw== shoyer 1217238 2019-07-17T22:26:47Z 2019-07-17T22:26:47Z MEMBER

Thanks for the report.

I think should be relatively straightforward to fix, assuming that the underlying maptlotlib plotting functions handle 2D coordinates.

For reference, here's the full error traceback: ``` ValueError Traceback (most recent call last) <ipython-input-6-8d3b2b196427> in <module>() ----> 1 ds.data[0].plot.pcolormesh(x='x', y='zt')

3 frames /usr/local/lib/python3.6/dist-packages/xarray/plot/plot.py in plotmethod(_PlotMethods_obj, x, y, figsize, size, aspect, ax, row, col, col_wrap, xincrease, yincrease, add_colorbar, add_labels, vmin, vmax, cmap, colors, center, robust, extend, levels, infer_intervals, subplot_kws, cbar_ax, cbar_kwargs, xscale, yscale, xticks, yticks, xlim, ylim, norm, kwargs) 697 for arg in ['_PlotMethods_obj', 'newplotfunc', 'kwargs']: 698 del allargs[arg] --> 699 return newplotfunc(allargs) 700 701 # Add to class _PlotMethods

/usr/local/lib/python3.6/dist-packages/xarray/plot/plot.py in newplotfunc(darray, x, y, figsize, size, aspect, ax, row, col, col_wrap, xincrease, yincrease, add_colorbar, add_labels, vmin, vmax, cmap, center, robust, extend, levels, infer_intervals, colors, subplot_kws, cbar_ax, cbar_kwargs, xscale, yscale, xticks, yticks, xlim, ylim, norm, **kwargs) 583 # check if we need to broadcast one dimension 584 if xval.ndim < yval.ndim: --> 585 xval = np.broadcast_to(xval, yval.shape) 586 587 if yval.ndim < xval.ndim:

/usr/local/lib/python3.6/dist-packages/numpy/lib/stride_tricks.py in broadcast_to(array, shape, subok) 180 [1, 2, 3]]) 181 """ --> 182 return _broadcast_to(array, shape, subok=subok, readonly=True) 183 184

/usr/local/lib/python3.6/dist-packages/numpy/lib/stride_tricks.py in _broadcast_to(array, shape, subok, readonly) 127 it = np.nditer( 128 (array,), flags=['multi_index', 'refs_ok', 'zerosize_ok'] + extras, --> 129 op_flags=[op_flag], itershape=shape, order='C') 130 with it: 131 # never really has writebackifcopy semantics

ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (101,) and requested shape (101,51) ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Plotting with 2d coordinates, error in transposed coordinate 469344355

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