@@ -499,9 +499,7 @@ def dataclasses_to_dicts(data):
499499# Conversion of Inputs to Arrays
500500
501501
502- def to_arrays (
503- data , columns , coerce_float : bool = False , dtype : Optional [DtypeObj ] = None
504- ):
502+ def to_arrays (data , columns , dtype : Optional [DtypeObj ] = None ):
505503 """
506504 Return list of arrays, columns.
507505 """
@@ -547,7 +545,7 @@ def to_arrays(
547545 data = [tuple (x ) for x in data ]
548546 content , columns = _list_to_arrays (data , columns )
549547
550- content , columns = _finalize_columns_and_data (content , columns , dtype , coerce_float )
548+ content , columns = _finalize_columns_and_data (content , columns , dtype )
551549 return content , columns
552550
553551
@@ -634,7 +632,6 @@ def _finalize_columns_and_data(
634632 content : np .ndarray ,
635633 columns : Optional [Union [Index , List ]],
636634 dtype : Optional [DtypeObj ],
637- coerce_float : bool ,
638635) -> Tuple [List [np .ndarray ], Union [Index , List [Axis ]]]:
639636 """
640637 Ensure we have valid columns, cast object dtypes if possible.
@@ -648,7 +645,7 @@ def _finalize_columns_and_data(
648645 raise ValueError (err ) from err
649646
650647 if len (content ) and content [0 ].dtype == np .object_ :
651- content = _convert_object_array (content , dtype = dtype , coerce_float = coerce_float )
648+ content = _convert_object_array (content , dtype = dtype )
652649 return content , columns
653650
654651
@@ -711,15 +708,14 @@ def _validate_or_indexify_columns(
711708
712709
713710def _convert_object_array (
714- content : List [Scalar ], coerce_float : bool = False , dtype : Optional [DtypeObj ] = None
711+ content : List [Scalar ], dtype : Optional [DtypeObj ] = None
715712) -> List [Scalar ]:
716713 """
717714 Internal function ot convert object array.
718715
719716 Parameters
720717 ----------
721718 content: list of processed data records
722- coerce_float: bool, to coerce floats or not, default is False
723719 dtype: np.dtype, default is None
724720
725721 Returns
@@ -729,7 +725,7 @@ def _convert_object_array(
729725 # provide soft conversion of object dtypes
730726 def convert (arr ):
731727 if dtype != np .dtype ("O" ):
732- arr = lib .maybe_convert_objects (arr , try_float = coerce_float )
728+ arr = lib .maybe_convert_objects (arr )
733729 arr = maybe_cast_to_datetime (arr , dtype )
734730 return arr
735731
0 commit comments