Skip to content

Commit edb863e

Browse files
authored
CLN: avoid values_from_object in construction (pandas-dev#32504)
1 parent 08c6597 commit edb863e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/internals/construction.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
from pandas.core import algorithms, common as com
3838
from pandas.core.arrays import Categorical
39-
from pandas.core.construction import sanitize_array
39+
from pandas.core.construction import extract_array, sanitize_array
4040
from pandas.core.indexes import base as ibase
4141
from pandas.core.indexes.api import (
4242
Index,
@@ -519,7 +519,7 @@ def _list_of_series_to_arrays(data, columns, coerce_float=False, dtype=None):
519519
else:
520520
indexer = indexer_cache[id(index)] = index.get_indexer(columns)
521521

522-
values = com.values_from_object(s)
522+
values = extract_array(s, extract_numpy=True)
523523
aligned_values.append(algorithms.take_1d(values, indexer))
524524

525525
values = np.vstack(aligned_values)

0 commit comments

Comments
 (0)