Skip to content

Commit e5a54da

Browse files
author
araraonline
committed
Fix parameter types
1 parent a7cb103 commit e5a54da

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pandas/core/indexes/api.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ def _get_objs_combined_axis(objs, intersect=False, axis=0, sort=True):
5454
objs : list of objects
5555
Each object will only be considered if it has a _get_axis
5656
attribute.
57-
intersect : boolean, default False
57+
intersect : bool, default False
5858
If True, calculate the intersection between indexes. Otherwise,
5959
calculate the union.
6060
axis : {0 or 'index', 1 or 'outer'}, default 0
6161
The axis to extract indexes from.
62-
sort : boolean, default True
62+
sort : bool, default True
6363
Whether the result index should come out sorted or not.
6464
6565
Returns
@@ -78,12 +78,12 @@ def _get_combined_index(indexes, intersect=False, sort=False):
7878
7979
Parameters
8080
----------
81-
indexes : a list of Index or list objects
81+
indexes : list of Index or list objects
8282
When intersect=True, do not accept list of lists.
83-
intersect : boolean, default False
83+
intersect : bool, default False
8484
If True, calculate the intersection between indexes. Otherwise,
8585
calculate the union.
86-
sort : boolean, default False
86+
sort : bool, default False
8787
Whether the result index should come out sorted or not.
8888
8989
Returns
@@ -121,8 +121,8 @@ def _union_indexes(indexes, sort=True):
121121
122122
Parameters
123123
----------
124-
indexes : a list of Index or list objects
125-
sort : boolean, default True
124+
indexes : list of Index or list objects
125+
sort : bool, default True
126126
Whether the result index should come out sorted or not.
127127
128128
Returns
@@ -147,7 +147,7 @@ def _unique_indices(inds):
147147
148148
Parameters
149149
----------
150-
inds : a list of Index or list objects
150+
inds : list of Index or list objects
151151
152152
Returns
153153
-------
@@ -204,7 +204,7 @@ def _sanitize_and_check(indexes):
204204
205205
Parameters
206206
----------
207-
indexes : a list of Index or list objects
207+
indexes : list of Index or list objects
208208
209209
Returns
210210
-------
@@ -237,7 +237,7 @@ def _get_consensus_names(indexes):
237237
238238
Parameters
239239
----------
240-
indexes : a list of index objects
240+
indexes : list of Index objects
241241
242242
Returns
243243
-------
@@ -260,11 +260,11 @@ def _all_indexes_same(indexes):
260260
261261
Parameters
262262
----------
263-
indexes : a list of Index objects
263+
indexes : list of Index objects
264264
265265
Returns
266266
-------
267-
boolean
267+
bool
268268
True if all indexes contain the same elements, False otherwise.
269269
"""
270270
first = indexes[0]

0 commit comments

Comments
 (0)