@@ -425,7 +425,7 @@ def _get_axes(N, K, index, columns):
425
425
# Conversion of Inputs to Arrays
426
426
427
427
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 ):
429
429
"""
430
430
Return list of arrays, columns.
431
431
"""
@@ -452,11 +452,7 @@ def to_arrays(data, columns, coerce_float=False, dtype=None, to_integer_array=Fa
452
452
return _list_to_arrays (data , columns , coerce_float = coerce_float , dtype = dtype )
453
453
elif isinstance (data [0 ], abc .Mapping ):
454
454
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
460
456
)
461
457
elif isinstance (data [0 ], ABCSeries ):
462
458
return _list_of_series_to_arrays (
@@ -527,9 +523,7 @@ def _list_of_series_to_arrays(data, columns, coerce_float=False, dtype=None):
527
523
return values .T , columns
528
524
529
525
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 ):
533
527
"""Convert list of dicts to numpy arrays
534
528
535
529
if `columns` is not passed, column names are inferred from the records
@@ -562,17 +556,11 @@ def _list_of_dict_to_arrays(
562
556
563
557
content = list (lib .dicts_to_array (data , list (columns )).T )
564
558
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
570
560
)
571
561
572
562
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 ):
576
564
if columns is None :
577
565
columns = ibase .default_index (len (content ))
578
566
else :
@@ -586,9 +574,7 @@ def _convert_object_array(
586
574
# provide soft conversion of object dtypes
587
575
def convert (arr ):
588
576
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 )
592
578
arr = maybe_cast_to_datetime (arr , dtype )
593
579
return arr
594
580
0 commit comments