Skip to content

Commit 06283a1

Browse files
author
MomIsBestFriend
committed
DOC: fixes for @datapythonista review
1 parent 386957a commit 06283a1

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pandas/core/sorting.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ def get_group_index(labels, shape, sort: bool, xnull: bool):
3535
Integers identifying levels at each location
3636
shape : sequence of ints
3737
Number of unique levels at each location
38-
sort : boolean
38+
sort : bool
3939
If the ranks of returned ids should match lexical ranks of labels
40-
xnull : boolean
40+
xnull : bool
4141
If true nulls are excluded. i.e. -1 values in the labels are
4242
passed through.
4343
@@ -251,13 +251,9 @@ def nargsort(
251251
(GH #6399, #5231)
252252
253253
Parameters
254-
255254
----------
256-
257255
kind : str, default 'quicksort'
258-
259256
ascending : bool, default True
260-
261257
na_position : {'first', 'last'}, default 'last'
262258
"""
263259
items = extract_array(items)
@@ -326,7 +322,7 @@ def get_indexer_dict(label_list, keys):
326322
Returns
327323
-------
328324
dict
329-
labels mapped to indexers.
325+
Labels mapped to indexers.
330326
"""
331327
shape = [len(x) for x in keys]
332328

0 commit comments

Comments
 (0)