We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cda48d commit d7f9c60Copy full SHA for d7f9c60
pandas/core/common.py
@@ -405,6 +405,18 @@ def _asarray_tuplesafe(values, dtype=None):
405
406
407
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
420
if isinstance(labels, (compat.string_types, tuple)):
421
labels = [labels]
422
0 commit comments