Skip to content

Commit 91895b5

Browse files
committed
Remove to_integer_array keyword in internals/construction.py
1 parent f3907d0 commit 91895b5

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

pandas/core/internals/construction.py

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ def _get_axes(N, K, index, columns):
425425
# Conversion of Inputs to Arrays
426426

427427

428-
def to_arrays(data, columns, coerce_float=False, dtype=None, to_integer_array=False):
428+
def to_arrays(data, columns, coerce_float=False, dtype=None):
429429
"""
430430
Return list of arrays, columns.
431431
"""
@@ -452,11 +452,7 @@ def to_arrays(data, columns, coerce_float=False, dtype=None, to_integer_array=Fa
452452
return _list_to_arrays(data, columns, coerce_float=coerce_float, dtype=dtype)
453453
elif isinstance(data[0], abc.Mapping):
454454
return _list_of_dict_to_arrays(
455-
data,
456-
columns,
457-
coerce_float=coerce_float,
458-
dtype=dtype,
459-
to_integer_array=to_integer_array,
455+
data, columns, coerce_float=coerce_float, dtype=dtype
460456
)
461457
elif isinstance(data[0], ABCSeries):
462458
return _list_of_series_to_arrays(
@@ -527,9 +523,7 @@ def _list_of_series_to_arrays(data, columns, coerce_float=False, dtype=None):
527523
return values.T, columns
528524

529525

530-
def _list_of_dict_to_arrays(
531-
data, columns, coerce_float=False, dtype=None, to_integer_array=False
532-
):
526+
def _list_of_dict_to_arrays(data, columns, coerce_float=False, dtype=None):
533527
"""Convert list of dicts to numpy arrays
534528
535529
if `columns` is not passed, column names are inferred from the records
@@ -562,17 +556,11 @@ def _list_of_dict_to_arrays(
562556

563557
content = list(lib.dicts_to_array(data, list(columns)).T)
564558
return _convert_object_array(
565-
content,
566-
columns,
567-
dtype=dtype,
568-
coerce_float=coerce_float,
569-
to_integer_array=to_integer_array,
559+
content, columns, dtype=dtype, coerce_float=coerce_float
570560
)
571561

572562

573-
def _convert_object_array(
574-
content, columns, coerce_float=False, dtype=None, to_integer_array=False
575-
):
563+
def _convert_object_array(content, columns, coerce_float=False, dtype=None):
576564
if columns is None:
577565
columns = ibase.default_index(len(content))
578566
else:
@@ -586,9 +574,7 @@ def _convert_object_array(
586574
# provide soft conversion of object dtypes
587575
def convert(arr):
588576
if dtype != object and dtype != np.object:
589-
arr = lib.maybe_convert_objects(
590-
arr, try_float=coerce_float, to_integer_array=to_integer_array
591-
)
577+
arr = lib.maybe_convert_objects(arr, try_float=coerce_float)
592578
arr = maybe_cast_to_datetime(arr, dtype)
593579
return arr
594580

0 commit comments

Comments
 (0)