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
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.21.0.txt
+18
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,24 @@ This does not raise any obvious exceptions, but also does not create a new colum
91
91
92
92
Setting a list-like data structure into a new attribute now raise a ``UserWarning`` about the potential for unexpected behavior. See :ref:`Attribute Access <indexing.attribute_access>`.
93
93
94
+
``drop`` now also accepts index/columns keywords
95
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
96
+
97
+
The :meth:`~DataFrame.drop` method has gained ``index``/``columns`` keywords as an
98
+
alternative to specify the ``axis`` and to make it similar in usage to ``reindex``
0 commit comments