#NEWLINE# def sort( self , axis = 0 , ascending = True , kind = 'quicksort' , na_position = 'last' , inplace = True ) : #NEWLINE# #INDENT# "\n        DEPRECATED: use :meth:`Series.sort_values(inplace=True)` for INPLACE\n        sorting\n\n        Sort values and index labels by value. This is an inplace sort by\n        default.  Series.order is the equivalent but returns a new Series.\n\n        Parameters\n        ----------\n        axis : int (can only be zero)\n        ascending : boolean, default True\n            Sort ascending. Passing False sorts descending\n        kind : {'mergesort', 'quicksort', 'heapsort'}, default 'quicksort'\n            Choice of sorting algorithm. See np.sort for more\n            information. 'mergesort' is the only stable algorithm\n        na_position : {'first', 'last'} (optional, default='last')\n            'first' puts NaNs at the beginning\n            'last' puts NaNs at the end\n        inplace : boolean, default True\n            Do operation in place.\n\n        See Also\n        --------\n        Series.sort_values\n        " #NEWLINE# warnings . warn ( 'sort is deprecated, use sort_values(inplace=True) for INPLACE sorting' , FutureWarning , stacklevel = 2 ) #NEWLINE# return self . sort_values ( ascending = ascending , kind = kind , na_position = na_position , inplace = inplace )