home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 341664808 and user = 7441788 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

  • seth-p · 4 ✖

issue 1

  • ENH: format_array_flat() always displays first and last items. · 4 ✖

author_association 1

  • CONTRIBUTOR 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
406639293 https://github.com/pydata/xarray/pull/2293#issuecomment-406639293 https://api.github.com/repos/pydata/xarray/issues/2293 MDEyOklzc3VlQ29tbWVudDQwNjYzOTI5Mw== seth-p 7441788 2018-07-20T15:40:23Z 2018-07-20T15:40:23Z CONTRIBUTOR

I added a note to whats-new.rst.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ENH: format_array_flat() always displays first and last items. 341664808
406485754 https://github.com/pydata/xarray/pull/2293#issuecomment-406485754 https://api.github.com/repos/pydata/xarray/issues/2293 MDEyOklzc3VlQ29tbWVudDQwNjQ4NTc1NA== seth-p 7441788 2018-07-20T04:27:51Z 2018-07-20T04:28:35Z CONTRIBUTOR

One slight oddity is that formatting.format_array_flat(np.arange(4), 0) returns 0 ... 3 even though 0 1 2 3 would take up the same number of characters. I'm not inclined to add a special case for this, but let me know if you think I should.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ENH: format_array_flat() always displays first and last items. 341664808
406390564 https://github.com/pydata/xarray/pull/2293#issuecomment-406390564 https://api.github.com/repos/pydata/xarray/issues/2293 MDEyOklzc3VlQ29tbWVudDQwNjM5MDU2NA== seth-p 7441788 2018-07-19T19:38:24Z 2018-07-19T19:38:24Z CONTRIBUTOR

@shoyer, I think I've implemented all your suggestions. Let me know what you think. (I haven't yet updated whats-new.rst.)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ENH: format_array_flat() always displays first and last items. 341664808
405369643 https://github.com/pydata/xarray/pull/2293#issuecomment-405369643 https://api.github.com/repos/pydata/xarray/issues/2293 MDEyOklzc3VlQ29tbWVudDQwNTM2OTY0Mw== seth-p 7441788 2018-07-16T20:23:02Z 2018-07-16T20:23:02Z CONTRIBUTOR

Sample output:

``` (base) C:\Users\Seth\github\xarray>ipython Python 3.6.5 | packaged by conda-forge | (default, Apr 6 2018, 16:13:55) [MSC v.1900 64 bit (AMD64)] Type 'copyright', 'credits' or 'license' for more information IPython 6.4.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import xarray as xr

In [2]: words = "This is the time for all good men to come to the aid of their country".split(' ')

In [3]: for i in range(0, len(words) + 1): ...: print("-------------------------------------------------------------------------------") ...: print(xr.DataArray(words[:i], dims=('foo',), coords={'foo': words[:i]})) ...:


<xarray.DataArray (foo: 0)> array([], dtype=float64) Coordinates: * foo (foo) float64


<xarray.DataArray (foo: 1)> array(['This'], dtype='<U4') Coordinates: * foo (foo) <U4 'This'


<xarray.DataArray (foo: 2)> array(['This', 'is'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is'


<xarray.DataArray (foo: 3)> array(['This', 'is', 'the'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the'


<xarray.DataArray (foo: 4)> array(['This', 'is', 'the', 'time'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time'


<xarray.DataArray (foo: 5)> array(['This', 'is', 'the', 'time', 'for'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time' 'for'


<xarray.DataArray (foo: 6)> array(['This', 'is', 'the', 'time', 'for', 'all'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time' 'for' 'all'


<xarray.DataArray (foo: 7)> array(['This', 'is', 'the', 'time', 'for', 'all', 'good'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time' 'for' 'all' 'good'


<xarray.DataArray (foo: 8)> array(['This', 'is', 'the', 'time', 'for', 'all', 'good', 'men'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time' 'for' 'all' 'good' 'men'


<xarray.DataArray (foo: 9)> array(['This', 'is', 'the', 'time', 'for', 'all', 'good', 'men', 'to'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time' 'for' 'all' 'good' 'men' 'to'


<xarray.DataArray (foo: 10)> array(['This', 'is', 'the', 'time', 'for', 'all', 'good', 'men', 'to', 'come'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time' ... 'good' 'men' 'to' 'come'


<xarray.DataArray (foo: 11)> array(['This', 'is', 'the', 'time', 'for', 'all', 'good', 'men', 'to', 'come', 'to'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time' 'for' ... 'men' 'to' 'come' 'to'


<xarray.DataArray (foo: 12)> array(['This', 'is', 'the', 'time', 'for', 'all', 'good', 'men', 'to', 'come', 'to', 'the'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time' 'for' ... 'to' 'come' 'to' 'the'


<xarray.DataArray (foo: 13)> array(['This', 'is', 'the', 'time', 'for', 'all', 'good', 'men', 'to', 'come', 'to', 'the', 'aid'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time' ... 'come' 'to' 'the' 'aid'


<xarray.DataArray (foo: 14)> array(['This', 'is', 'the', 'time', 'for', 'all', 'good', 'men', 'to', 'come', 'to', 'the', 'aid', 'of'], dtype='<U4') Coordinates: * foo (foo) <U4 'This' 'is' 'the' 'time' 'for' ... 'to' 'the' 'aid' 'of'


<xarray.DataArray (foo: 15)> array(['This', 'is', 'the', 'time', 'for', 'all', 'good', 'men', 'to', 'come', 'to', 'the', 'aid', 'of', 'their'], dtype='<U5') Coordinates: * foo (foo) <U5 'This' 'is' 'the' 'time' ... 'the' 'aid' 'of' 'their'


<xarray.DataArray (foo: 16)> array(['This', 'is', 'the', 'time', 'for', 'all', 'good', 'men', 'to', 'come', 'to', 'the', 'aid', 'of', 'their', 'country'], dtype='<U7') Coordinates: * foo (foo) <U7 'This' 'is' 'the' 'time' ... 'aid' 'of' 'their' 'country' ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  ENH: format_array_flat() always displays first and last items. 341664808

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