Skip to content

Commit de486d6

Browse files
committed
* 'master' of https://github.com/neurodebian/pandas: ENH: API change -- sort (columns=) instead of column=
2 parents 2767250 + e2bb42a commit de486d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/frame.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2159,10 +2159,10 @@ def duplicated(self, cols=None, take_last=False):
21592159
#----------------------------------------------------------------------
21602160
# Sorting
21612161

2162-
def sort(self, column=None, axis=0, ascending=True):
2162+
def sort(self, columns=None, axis=0, ascending=True):
21632163
"""
21642164
Sort DataFrame either by labels (along either axis) or by the values in
2165-
a column
2165+
column(s)
21662166
21672167
Parameters
21682168
----------
@@ -2178,7 +2178,7 @@ def sort(self, column=None, axis=0, ascending=True):
21782178
-------
21792179
sorted : DataFrame
21802180
"""
2181-
return self.sort_index(by=column, axis=axis, ascending=ascending)
2181+
return self.sort_index(by=columns, axis=axis, ascending=ascending)
21822182

21832183
def sort_index(self, axis=0, by=None, ascending=True):
21842184
"""

0 commit comments

Comments
 (0)