Skip to content

Commit 1acdb5e

Browse files
gtrevisanheadtr1ck
andauthored
Fix docstrings for combine_by_coords (#8471)
* Fix docstrings for combine_by_coords Update default for `combine_attrs` parameter. * add whats-new --------- Co-authored-by: Michael Niklas <mick.niklas@gmail.com>
1 parent 2f00913 commit 1acdb5e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/whats-new.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ Documentation
7474
This is the recommended technique to replace the use of the deprecated ``loffset`` parameter
7575
in ``resample`` (:pull:`8479`).
7676
By `Doug Latornell <https://github.com/douglatornell>`_.
77-
7877
- Improved error message when attempting to get a variable which doesn't exist from a Dataset.
7978
(:pull:`8474`)
8079
By `Maximilian Roos <https://github.com/max-sixty>`_.
80+
- Fix default value of ``combine_attrs `` in :py:func:`xarray.combine_by_coords` (:pull:`8471`)
81+
By `Gregorio L. Trevisan <https://github.com/gtrevisan>`_.
8182
8283
Internal Changes
8384
~~~~~~~~~~~~~~~~

xarray/core/combine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def combine_by_coords(
739739
dimension must have the same size in all objects.
740740
741741
combine_attrs : {"drop", "identical", "no_conflicts", "drop_conflicts", \
742-
"override"} or callable, default: "drop"
742+
"override"} or callable, default: "no_conflicts"
743743
A callable or a string indicating how to combine attrs of the objects being
744744
merged:
745745

0 commit comments

Comments
 (0)