Skip to content

Commit 7fea97a

Browse files
committed
DOC: docstring for _index_labels_to_array
1 parent 30df6ce commit 7fea97a

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
@@ -399,6 +399,18 @@ def _asarray_tuplesafe(values, dtype=None):
399399

400400

401401
def _index_labels_to_array(labels, dtype=None):
402+
"""
403+
Transform label or iterable of labels to array, for use in Index.
404+
405+
Parameters
406+
----------
407+
dtype : dtype
408+
If specified, use as dtype of the resulting array, otherwise infer.
409+
410+
Returns
411+
-------
412+
array
413+
"""
402414
if isinstance(labels, (compat.string_types, tuple)):
403415
labels = [labels]
404416

0 commit comments

Comments
 (0)