Skip to content

Commit bd4438a

Browse files
committed
Update docs
1 parent 13b4ee5 commit bd4438a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/generic.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,8 +330,8 @@ def attrs(self) -> dict[Hashable, Any]:
330330
-----
331331
Many operations that create new datasets will copy ``attrs``. Copies
332332
are always deep so that changing ``attrs`` will only affect the
333-
present dataset. ``pandas.concat`` copies ``attrs`` only if all input
334-
datasets have the same ``attrs``.
333+
present dataset. :func:`pandas.concat` and :func:`pandas.merge` will
334+
only copy ``attrs`` if all input datasets have the same ``attrs``.
335335
336336
Examples
337337
--------
@@ -6092,9 +6092,9 @@ def __finalize__(self, other, method: str | None = None, **kwargs) -> Self:
60926092

60936093
elif hasattr(other, "input_objs"):
60946094
objs = other.input_objs
6095-
# propagate attrs only if all concat arguments have the same attrs
6095+
# propagate attrs only if all inputs have the same attrs
60966096
if all(bool(obj.attrs) for obj in objs):
6097-
# all concatenate arguments have non-empty attrs
6097+
# all inputs have non-empty attrs
60986098
attrs = objs[0].attrs
60996099
have_same_attrs = all(obj.attrs == attrs for obj in objs[1:])
61006100
if have_same_attrs:

0 commit comments

Comments
 (0)