home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 397313140

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/2230#issuecomment-397313140 https://api.github.com/repos/pydata/xarray/issues/2230 397313140 MDEyOklzc3VlQ29tbWVudDM5NzMxMzE0MA== 30219501 2018-06-14T14:20:10Z 2018-06-14T14:34:18Z NONE

I really have problems in reading the code in duck_array_ops.py. The program starts with defining 12 operators. One of them is:

sum = _create_nan_agg_method('sum', numeric_only=True)

I really do not understand where the train is going. Thats due to my limited programming skills for object-oriented code. No guess what '_create_nan_agg_method' is doing. I tried to change the code in method def _nansum_object(value, axis=None, **kwargs): """ In house nansum for object array """ return _dask_or_eager_func('sum')(value, axis=axis, **kwargs) #return np.array(np.nan) but it seems that he will not touch that method during the 'resample().sum()' process.

I need some help to really modify the operators. Is there any hint for me? For the pandas code it seems to be much easier.

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