issue_comments: 602508864
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/3007#issuecomment-602508864 | https://api.github.com/repos/pydata/xarray/issues/3007 | 602508864 | MDEyOklzc3VlQ29tbWVudDYwMjUwODg2NA== | 8833517 | 2020-03-23T10:27:27Z | 2020-03-23T10:27:27Z | CONTRIBUTOR | I recently had a similar issue and found out the cause: When transforming from a dataframe to an xarray, the xarray allocates memory for all possible combinations of the coordinates. In this particular case, you have 5 unique values for latitude and longitude in your five rows, which means there are 5*5=25 possible combinations of lat/long values. All missing values are then filled in as Let me illustrate by recreating just your data on latitude, longitude,
But for the xarray, this means it will end up creating a 5x5 array, of which only 5 values are given along the diagonal. This is very clearly visible when showing just the However, as So it works as intended, but can throw you for a loop if you don't realize it's creating an array the size of all possible index combinations. @shoyer can you close this issue? |
{ "total_count": 3, "+1": 3, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
454073421 |