home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 205084767

This data as json

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
205084767 MDU6SXNzdWUyMDUwODQ3Njc= 1246 Positional indexing with a large float32 coordinate. 6815844 closed 0     2 2017-02-03T06:49:42Z 2017-02-04T02:44:17Z 2017-02-04T02:44:17Z MEMBER      

The positional indexing fails if the coordinate is large np.float32 array. The minimum working example is

da_float64 = xr.DataArray(np.random.randn(1000000), coords={'Time': np.linspace(0.0,1.0,1000000).astype(np.float64)}) da_float64.loc[0.2:0.3] # This works fine

da_float32 = xr.DataArray(np.random.randn(1000000), coords={'Time': np.linspace(0.0,1.0,1000000).astype(np.float32)}) da_float32.loc[0.2:0.3] # This causes a kernel freeze.

With a smaller sized DataArray, both works.

da_float32.to_pandas()

also freezes the kernel.

Are these a pandas's issue?

I used Python 3.5 and xarray 0.8.2.

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

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 2 rows from issue in issue_comments
Powered by Datasette · Queries took 0.45ms · About: xarray-datasette