Series.sort_values(axis=0, ascending=True, inplace=False, kind='quicksort', na_position='last')
[source]
Sort by the values along either axis
New in version 0.17.0.
Parameters: |
axis : {0, ‘index’}, default 0 Axis to direct sorting ascending : bool or list of bool, default True Sort ascending vs. descending. Specify list for multiple sort orders. If this is a list of bools, must match the length of the by. inplace : bool, default False if True, perform operation in-place kind : {‘quicksort’, ‘mergesort’, ‘heapsort’}, default ‘quicksort’ Choice of sorting algorithm. See also ndarray.np.sort for more information. na_position : {‘first’, ‘last’}, default ‘last’
|
---|---|
Returns: |
sorted_obj : Series |
© 2011–2012 Lambda Foundry, Inc. and PyData Development Team
© 2008–2011 AQR Capital Management, LLC
© 2008–2014 the pandas development team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.19.2/generated/pandas.Series.sort_values.html