home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 624613640

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/issues/4027#issuecomment-624613640 https://api.github.com/repos/pydata/xarray/issues/4027 624613640 MDEyOklzc3VlQ29tbWVudDYyNDYxMzY0MA== 408363 2020-05-06T12:14:47Z 2020-05-06T12:14:47Z NONE

Simpler example, if it's any use:

df = pd.DataFrame(np.arange(4).reshape((2,2)), index=[-1,-2], columns=[-3,-4]) df.index.name, df.columns.name = 'row', 'column' print('Original Series') print(df.stack()) print('After going to DataArray and back') print(df.stack().to_xarray().to_series()) Output Original Series row column -1 -3 0 -4 1 -2 -3 2 -4 3 dtype: int32 After going to DataArray and back row column -1 -3 3 -4 2 -2 -3 1 -4 0 dtype: int32

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