Skip to content

Commit 8632788

Browse files
authored
let keys be none in sorted_indices (#211)
1 parent 3fd047f commit 8632788

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/API_specification/dataframe_api/dataframe_object.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def get_column_names(self) -> Sequence[str]:
240240

241241
def sorted_indices(
242242
self,
243-
keys: Sequence[str],
243+
keys: Sequence[str] | None = None,
244244
*,
245245
ascending: Sequence[bool] | bool = True,
246246
nulls_position: Literal['first', 'last'] = 'last',
@@ -254,8 +254,9 @@ def sorted_indices(
254254
255255
Parameters
256256
----------
257-
keys : Sequence[str]
257+
keys : Sequence[str] | None
258258
Names of columns to sort by.
259+
If `None`, sort by all columns.
259260
ascending : Sequence[bool] or bool
260261
If `True`, sort by all keys in ascending order.
261262
If `False`, sort by all keys in descending order.

0 commit comments

Comments
 (0)