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 30df6ce commit 7fea97aCopy full SHA for 7fea97a
pandas/core/common.py
@@ -399,6 +399,18 @@ def _asarray_tuplesafe(values, dtype=None):
399
400
401
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
414
if isinstance(labels, (compat.string_types, tuple)):
415
labels = [labels]
416
0 commit comments