Skip to content

Commit b5698c0

Browse files
committed
Remove to_integer_array keyword in internals/construction.py
1 parent 57c613a commit b5698c0

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

pandas/core/internals/construction.py

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def _get_axes(N, K, index, columns):
429429
# Conversion of Inputs to Arrays
430430

431431

432-
def to_arrays(data, columns, coerce_float=False, dtype=None, to_integer_array=False):
432+
def to_arrays(data, columns, coerce_float=False, dtype=None):
433433
"""
434434
Return list of arrays, columns.
435435
"""
@@ -456,11 +456,7 @@ def to_arrays(data, columns, coerce_float=False, dtype=None, to_integer_array=Fa
456456
return _list_to_arrays(data, columns, coerce_float=coerce_float, dtype=dtype)
457457
elif isinstance(data[0], abc.Mapping):
458458
return _list_of_dict_to_arrays(
459-
data,
460-
columns,
461-
coerce_float=coerce_float,
462-
dtype=dtype,
463-
to_integer_array=to_integer_array,
459+
data, columns, coerce_float=coerce_float, dtype=dtype
464460
)
465461
elif isinstance(data[0], ABCSeries):
466462
return _list_of_series_to_arrays(
@@ -532,7 +528,6 @@ def _list_of_series_to_arrays(data, columns, coerce_float=False, dtype=None):
532528

533529

534530
def _list_of_dict_to_arrays(data, columns, coerce_float=False, dtype=None):
535-
536531
"""Convert list of dicts to numpy arrays
537532
538533
if `columns` is not passed, column names are inferred from the records
@@ -566,17 +561,11 @@ def _list_of_dict_to_arrays(data, columns, coerce_float=False, dtype=None):
566561

567562
content = list(lib.dicts_to_array(data, list(columns)).T)
568563
return _convert_object_array(
569-
content,
570-
columns,
571-
dtype=dtype,
572-
coerce_float=coerce_float,
573-
to_integer_array=to_integer_array,
564+
content, columns, dtype=dtype, coerce_float=coerce_float
574565
)
575566

576567

577-
def _convert_object_array(
578-
content, columns, coerce_float=False, dtype=None, to_integer_array=False
579-
):
568+
def _convert_object_array(content, columns, coerce_float=False, dtype=None):
580569
if columns is None:
581570
columns = ibase.default_index(len(content))
582571
else:
@@ -590,9 +579,7 @@ def _convert_object_array(
590579
# provide soft conversion of object dtypes
591580
def convert(arr):
592581
if dtype != object and dtype != np.object:
593-
arr = lib.maybe_convert_objects(
594-
arr, try_float=coerce_float, to_integer_array=to_integer_array
595-
)
582+
arr = lib.maybe_convert_objects(arr, try_float=coerce_float)
596583
arr = maybe_cast_to_datetime(arr, dtype)
597584
return arr
598585

0 commit comments

Comments
 (0)