home / github

Menu
  • GraphQL API
  • Search all tables

issues

Table actions
  • GraphQL API for issues

1 row where repo = 13221727, type = "issue" and user = 210858 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

type 1

  • issue · 1 ✖

state 1

  • open 1

repo 1

  • xarray · 1 ✖
id node_id number title user state locked assignee milestone comments created_at updated_at ▲ closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
152040420 MDU6SXNzdWUxNTIwNDA0MjA= 838 MADIS netCDF to Pandas Dataframe: ValueError: iterator is too large akrherz 210858 open 0     8 2016-04-30T16:48:53Z 2020-02-21T20:32:04Z   NONE      

Getting started with xarray 0.7 (python2.7 RHEL7.2 64bit) and I am having trouble converting a MADIS produced netCDF file to a pandas Dataframe. Here's the traceback

text Traceback (most recent call last): File "test.py", line 3, in <module> df = nc.to_dataframe() File "/usr/lib/python2.7/site-packages/xarray/core/dataset.py", line 1867, in to_dataframe return self._to_dataframe(self.dims) File "/usr/lib/python2.7/site-packages/xarray/core/dataset.py", line 1856, in _to_dataframe for k in columns] File "/usr/lib/python2.7/site-packages/xarray/core/variable.py", line 715, in expand_dims expanded_data = ops.broadcast_to(self.data, tmp_shape) File "/usr/lib/python2.7/site-packages/xarray/core/ops.py", line 65, in f return getattr(eager_module, name)(data, *args, **kwargs) File "/usr/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py", line 115, in broadcast_to return _broadcast_to(array, shape, subok=subok, readonly=True) File "/usr/lib64/python2.7/site-packages/numpy/lib/stride_tricks.py", line 70, in _broadcast_to op_flags=[op_flag], itershape=shape, order='C').itviews[0] ValueError: iterator is too large

here's the code

python import xarray as xr nc = xr.open_dataset('20160430_1600.nc', decode_cf=False) df = nc.to_dataframe()

Here's the netcdf file

Thanks!

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/838/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    xarray 13221727 issue

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issues] (
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [number] INTEGER,
   [title] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [state] TEXT,
   [locked] INTEGER,
   [assignee] INTEGER REFERENCES [users]([id]),
   [milestone] INTEGER REFERENCES [milestones]([id]),
   [comments] INTEGER,
   [created_at] TEXT,
   [updated_at] TEXT,
   [closed_at] TEXT,
   [author_association] TEXT,
   [active_lock_reason] TEXT,
   [draft] INTEGER,
   [pull_request] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [performed_via_github_app] TEXT,
   [state_reason] TEXT,
   [repo] INTEGER REFERENCES [repos]([id]),
   [type] TEXT
);
CREATE INDEX [idx_issues_repo]
    ON [issues] ([repo]);
CREATE INDEX [idx_issues_milestone]
    ON [issues] ([milestone]);
CREATE INDEX [idx_issues_assignee]
    ON [issues] ([assignee]);
CREATE INDEX [idx_issues_user]
    ON [issues] ([user]);
Powered by Datasette · Queries took 79.435ms · About: xarray-datasette