Skip to content

Commit d7f9c60

Browse files
committed
DOC: docstring for _index_labels_to_array
1 parent 2cda48d commit d7f9c60

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pandas/core/common.py

+12
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,18 @@ def _asarray_tuplesafe(values, dtype=None):
405405

406406

407407
def _index_labels_to_array(labels, dtype=None):
408+
"""
409+
Transform label or iterable of labels to array, for use in Index.
410+
411+
Parameters
412+
----------
413+
dtype : dtype
414+
If specified, use as dtype of the resulting array, otherwise infer.
415+
416+
Returns
417+
-------
418+
array
419+
"""
408420
if isinstance(labels, (compat.string_types, tuple)):
409421
labels = [labels]
410422

0 commit comments

Comments
 (0)