home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 405305811

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/2285#issuecomment-405305811 https://api.github.com/repos/pydata/xarray/issues/2285 405305811 MDEyOklzc3VlQ29tbWVudDQwNTMwNTgxMQ== 7441788 2018-07-16T16:28:21Z 2018-07-16T16:28:21Z 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' ... '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' ... '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' ... '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' ... 'of' 'their' 'country' ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  341149017
Powered by Datasette · Queries took 0.846ms · About: xarray-datasette