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
Currently, the ``pd.col()`` syntax can be used in any place which accepts a
168
+
callable that takes the calling DataFrame as first argument and returns a
169
+
Series, like ``lambda df: df[col_name]``.
170
+
This includes :meth:`DataFrame.assign`, :meth:`DataFrame.loc`, and getitem/setitem.
171
+
172
+
It is expected that the support for ``pd.col()`` will be expanded to more methods
173
+
in future releases.
174
+
155
175
New Deprecation Policy
156
176
^^^^^^^^^^^^^^^^^^^^^^
157
177
pandas 3.0.0 introduces a new 3-stage deprecation policy: using ``DeprecationWarning`` initially, then switching to ``FutureWarning`` for broader visibility in the last minor version before the next major release, and then removal of the deprecated functionality in the major release. This was done to give downstream packages more time to adjust to pandas deprecations, which should reduce the amount of warnings that a user gets from code that isn't theirs. See `PDEP 17 <https://pandas.pydata.org/pdeps/0017-backwards-compatibility-and-deprecation-policy.html>`_ for more details.
0 commit comments