From 48b1a9d8100cbc5a1194af11f9190d661bbdbfb0 Mon Sep 17 00:00:00 2001 From: Robert Rosca <32569096+RobertRosca@users.noreply.github.com> Date: Wed, 29 Jul 2020 15:08:32 +0200 Subject: [PATCH 1/2] Add note about limited propagation of attrs Explicitly mention that `attrs` are not retained once a series is placed into a dataframe, related to issue #35425 --- doc/source/reference/series.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst index 3b595ba5ab206..0eb21f95bc5eb 100644 --- a/doc/source/reference/series.rst +++ b/doc/source/reference/series.rst @@ -536,6 +536,10 @@ Metadata .. warning:: ``Series.attrs`` is considered experimental and may change without warning. +.. note:: ``Series.attrs`` is retained for the ``Series`` object alone. Once the series + is placed into a ``DataFrame`` the ``attrs`` dictionary will not be propagated through + or retained in the ``DataFrame``. + .. autosummary:: :toctree: api/ From 5794766e689ef1940866173ddf75f0117518827e Mon Sep 17 00:00:00 2001 From: Robert Rosca <32569096+RobertRosca@users.noreply.github.com> Date: Wed, 26 Aug 2020 09:23:59 +0200 Subject: [PATCH 2/2] Update doc/source/reference/series.rst Co-authored-by: Tom Augspurger --- doc/source/reference/series.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst index 0eb21f95bc5eb..6bd4abe257cce 100644 --- a/doc/source/reference/series.rst +++ b/doc/source/reference/series.rst @@ -536,7 +536,7 @@ Metadata .. warning:: ``Series.attrs`` is considered experimental and may change without warning. -.. note:: ``Series.attrs`` is retained for the ``Series`` object alone. Once the series +.. note:: ``Series.attrs`` is retained for the ``Series`` object alone. If the series is placed into a ``DataFrame`` the ``attrs`` dictionary will not be propagated through or retained in the ``DataFrame``.