@@ -429,7 +429,7 @@ def _get_axes(N, K, index, columns):
429
429
# Conversion of Inputs to Arrays
430
430
431
431
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 ):
433
433
"""
434
434
Return list of arrays, columns.
435
435
"""
@@ -456,11 +456,7 @@ def to_arrays(data, columns, coerce_float=False, dtype=None, to_integer_array=Fa
456
456
return _list_to_arrays (data , columns , coerce_float = coerce_float , dtype = dtype )
457
457
elif isinstance (data [0 ], abc .Mapping ):
458
458
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
464
460
)
465
461
elif isinstance (data [0 ], ABCSeries ):
466
462
return _list_of_series_to_arrays (
@@ -532,7 +528,6 @@ def _list_of_series_to_arrays(data, columns, coerce_float=False, dtype=None):
532
528
533
529
534
530
def _list_of_dict_to_arrays (data , columns , coerce_float = False , dtype = None ):
535
-
536
531
"""Convert list of dicts to numpy arrays
537
532
538
533
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):
566
561
567
562
content = list (lib .dicts_to_array (data , list (columns )).T )
568
563
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
574
565
)
575
566
576
567
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 ):
580
569
if columns is None :
581
570
columns = ibase .default_index (len (content ))
582
571
else :
@@ -590,9 +579,7 @@ def _convert_object_array(
590
579
# provide soft conversion of object dtypes
591
580
def convert (arr ):
592
581
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 )
596
583
arr = maybe_cast_to_datetime (arr , dtype )
597
584
return arr
598
585
0 commit comments