You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* BUG: Copy attrs on pd.merge()
This uses the same logic as `pd.concat()`: Copy `attrs` only if all
input `attrs` are identical.
I've refactored the handling in __finalize__ from special-casing based on th the method name (previously only "concat") to handling "other" parameters
that have an `input_objs` attribute. This is a more scalable architecture compared to hard-coding method names in __finalize__.
Tests added for `concat()` and `merge()`.
Closes#60351.
* Update docs
* Add release note
* Fix wrong link
Co-authored-by: Matthew Roeschke <[email protected]>
* Move release note to v3.0.0
---------
Co-authored-by: Matthew Roeschke <[email protected]>
Co-authored-by: Marc Garcia <[email protected]>
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v3.0.0.rst
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,9 @@ Enhancement2
28
28
29
29
Other enhancements
30
30
^^^^^^^^^^^^^^^^^^
31
+
- :func:`pandas.merge` propagates the ``attrs`` attribute to the result if all
32
+
inputs have identical ``attrs``, as has so far already been the case for
33
+
:func:`pandas.concat`.
31
34
- :class:`pandas.api.typing.FrozenList` is available for typing the outputs of :attr:`MultiIndex.names`, :attr:`MultiIndex.codes` and :attr:`MultiIndex.levels` (:issue:`58237`)
32
35
- :class:`pandas.api.typing.SASReader` is available for typing the output of :func:`read_sas` (:issue:`55689`)
33
36
- Added :meth:`.Styler.to_typst` to write Styler objects to file, buffer or string in Typst format (:issue:`57617`)
0 commit comments