Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rolling keep_attrs & default True #4510

Merged
merged 20 commits into from
Nov 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
  • Loading branch information
mathause authored Nov 9, 2020
commit 502ca77a9be87e51f7bdc2e8464d91d2b7a7d58c
3 changes: 3 additions & 0 deletions xarray/core/common.py
Original file line number Diff line number Diff line change
@@ -577,10 +577,13 @@ def pipe(

>>> def adder(data, arg):
... return data + arg
mathause marked this conversation as resolved.
Show resolved Hide resolved
...
>>> def div(data, arg):
... return data / arg
mathause marked this conversation as resolved.
Show resolved Hide resolved
...
>>> def sub_mult(data, sub_arg, mult_arg):
... return (data * mult_arg) - sub_arg
mathause marked this conversation as resolved.
Show resolved Hide resolved
...
>>> x.pipe(adder, 2)
<xarray.Dataset>
Dimensions: (lat: 2, lon: 2)