| [ Web Proxy ] |
| Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.DataFrame.sort_index.html | [Back] [Original] |
Section Navigation
Sort object by labels (along an axis).
axis ({0 or 'index', 1 or 'columns'}, default 0) The axis along which to sort. The value 0 identifies the rows, and 1 identifies the columns.
ascending (bool, default True) Sort ascending vs. descending.
inplace (bool, default False) Whether to modify the DataFrame rather than creating a new one.
kind (str, default None) Choice of sorting algorithm. Accepts quicksort, mergesort, heapsort, stable. Ignored except when determining whether to sort stably. mergesort or stable will result in stable reorder.
na_position ({'first', 'last'}, default 'last') Puts NaNs at the beginning if first; last puts NaNs at the end. Not implemented for MultiIndex.
DataFrame with sorted values or None if inplace=True.
ValueError If value of na_position is not one of first or last.
ValueError If length of ascending dose not equal length of by.
Copyright 2019, Google.
Created using Sphinx 8.1.3.
Built with the PyData Sphinx Theme 0.19.0.
| Web Proxy Viewer | New URL | Original Page |