home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1272301209

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/pull/7123#issuecomment-1272301209 https://api.github.com/repos/pydata/xarray/issues/7123 1272301209 IC_kwDOAMm_X85L1caZ 22195223 2022-10-08T11:50:04Z 2022-10-08T11:50:04Z CONTRIBUTOR

I'm trying to figure out how to add examples to DataArray.cumsum and DataArray.cumprod, but it's not so clear to me.

It seems like they have partially dynamic docstrings. I have found the following script in xarray/core/common.py: _cum_extra_args_docstring = dedent( """\ dim : str or sequence of str, optional Dimension over which to apply `{name}`. axis : int or sequence of int, optional Axis over which to apply `{name}`. Only one of the 'dim' and 'axis' arguments can be supplied.""" ) However, it is not clear to me where the rest of the docstring is located, nor where the docstrings of each function (cumsum, cumprod) are located.

I'd appreciate if anybody could direct me to the explanation of this design :)

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