-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: Silent dropping of nuisance columns in transform_dict_like #43743
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
DEPR: Silent dropping of nuisance columns in transform_dict_like #43743
Conversation
@@ -337,6 +337,7 @@ Other Deprecations | |||
- Deprecated the ``squeeze`` argument to :meth:`read_csv`, :meth:`read_table`, and :meth:`read_excel`. Users should squeeze the DataFrame afterwards with ``.squeeze("columns")`` instead. (:issue:`43242`) | |||
- Deprecated the ``index`` argument to :class:`SparseArray` construction (:issue:`23089`) | |||
- Deprecated :meth:`.Rolling.validate`, :meth:`.Expanding.validate`, and :meth:`.ExponentialMovingWindow.validate` (:issue:`43665`) | |||
- Deprecated silent dropping of columns that raised a ``TypeError`` in :class:`Series.transform` and :class:`DataFrame.transform` when used with a dictionary (:issue:`43740`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is GroupBy.transform also affected? (same question for the agg PR)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No - groupby.transform does not accept dictionaries (or lists)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@rhshadrach want to make a PR enforcing this deprecation? |
Yep, will do. |
Part of #43740