issues: 123983561
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 123983561 | MDU6SXNzdWUxMjM5ODM1NjE= | 686 | sum of sum | 5049737 | closed | 0 | 2 | 2015-12-27T15:34:31Z | 2015-12-27T20:00:05Z | 2015-12-27T20:00:05Z | MEMBER | Hello, sum of sum behave differently between Pandas and xray. I don't if that's an issue or a feature. ``` In [644]: df0=pd.DataFrame([[1,2,3],[4,5,6]]) In [645]: df0.sum() Out[645]: 0 5 1 7 2 9 dtype: int64 In [646]: df0.sum().sum() Out[646]: 21 In [647]: ds0=xray.Dataset.from_dataframe(df0) In [648]: ds0 Out[648]: <xray.Dataset> Dimensions: (index: 2) Coordinates: * index (index) int64 0 1 Data variables: 0 (index) int64 1 4 1 (index) int64 2 5 2 (index) int64 3 6 In [649]: ds0.sum().sum() Out[649]: <xray.Dataset> Dimensions: () Coordinates: empty Data variables: 0 int64 5 1 int64 7 2 int64 9 In [650]: ds0.sum() Out[650]: <xray.Dataset> Dimensions: () Coordinates: empty Data variables: 0 int64 5 1 int64 7 2 int64 9 In [651]: ds0.sum().sum() Out[651]: <xray.Dataset> Dimensions: () Coordinates: empty Data variables: 0 int64 5 1 int64 7 2 int64 9 ``` Kind regards |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/686/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |