home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 294182366

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
294182366 MDU6SXNzdWUyOTQxODIzNjY= 1886 Whether should we follow pandas or numpy if they have different API? 6815844 closed 0     4 2018-02-04T09:05:30Z 2018-02-07T00:23:09Z 2018-02-07T00:23:09Z MEMBER      

In working with #1883, I noticed that our (and numpy's) std and var work differently from pandas. Pandas assumes ddof=1 as default, while we assume ddof=0. Do we want to match these behaviors to pandas?

```python In [1]: import numpy as np ...: import xarray as xr ...: da = xr.DataArray([0, 1, 2], dims='x', name='da')

In [2]: da.std() Out[2]: <xarray.DataArray 'da' ()> array(0.816496580927726)

In [3]: da.to_dataframe().std() Out[3]: da 1.0 dtype: float64

In [4]: da.std(ddof=1) Out[4]: <xarray.DataArray 'da' ()> array(1.0) ```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1886/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
  • 4 rows from issue in issue_comments
Powered by Datasette · Queries took 0.915ms · About: xarray-datasette