Skip to content

Commit 34bd15d

Browse files
bastewartjreback
bastewart
authored andcommitted
DOC: Clarified wording of coerce_float (#15164)
1 parent 7d5c354 commit 34bd15d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ def from_records(cls, data, index=None, exclude=None, columns=None,
962962
in the result (any names not found in the data will become all-NA
963963
columns)
964964
coerce_float : boolean, default False
965-
Attempt to convert values to non-string, non-numeric objects (like
965+
Attempt to convert values of non-string, non-numeric objects (like
966966
decimal.Decimal) to floating point, useful for SQL result sets
967967
968968
Returns

pandas/io/sql.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def read_sql_table(table_name, con, schema=None, index_col=None,
214214
index_col : string or list of strings, optional, default: None
215215
Column(s) to set as index(MultiIndex)
216216
coerce_float : boolean, default True
217-
Attempt to convert values to non-string, non-numeric objects (like
217+
Attempt to convert values of non-string, non-numeric objects (like
218218
decimal.Decimal) to floating point. Can result in loss of Precision.
219219
parse_dates : list or dict, default: None
220220
- List of column names to parse as dates
@@ -289,7 +289,7 @@ def read_sql_query(sql, con, index_col=None, coerce_float=True, params=None,
289289
index_col : string or list of strings, optional, default: None
290290
Column(s) to set as index(MultiIndex)
291291
coerce_float : boolean, default True
292-
Attempt to convert values to non-string, non-numeric objects (like
292+
Attempt to convert values of non-string, non-numeric objects (like
293293
decimal.Decimal) to floating point, useful for SQL result sets
294294
params : list, tuple or dict, optional, default: None
295295
List of parameters to pass to execute method. The syntax used
@@ -348,7 +348,7 @@ def read_sql(sql, con, index_col=None, coerce_float=True, params=None,
348348
index_col : string or list of strings, optional, default: None
349349
Column(s) to set as index(MultiIndex)
350350
coerce_float : boolean, default True
351-
Attempt to convert values to non-string, non-numeric objects (like
351+
Attempt to convert values of non-string, non-numeric objects (like
352352
decimal.Decimal) to floating point, useful for SQL result sets
353353
params : list, tuple or dict, optional, default: None
354354
List of parameters to pass to execute method. The syntax used
@@ -986,7 +986,7 @@ def read_table(self, table_name, index_col=None, coerce_float=True,
986986
index_col : string, optional, default: None
987987
Column to set as index
988988
coerce_float : boolean, default True
989-
Attempt to convert values to non-string, non-numeric objects
989+
Attempt to convert values of non-string, non-numeric objects
990990
(like decimal.Decimal) to floating point. This can result in
991991
loss of precision.
992992
parse_dates : list or dict, default: None
@@ -1048,7 +1048,7 @@ def read_query(self, sql, index_col=None, coerce_float=True,
10481048
index_col : string, optional, default: None
10491049
Column name to use as index for the returned DataFrame object.
10501050
coerce_float : boolean, default True
1051-
Attempt to convert values to non-string, non-numeric objects (like
1051+
Attempt to convert values of non-string, non-numeric objects (like
10521052
decimal.Decimal) to floating point, useful for SQL result sets
10531053
params : list, tuple or dict, optional, default: None
10541054
List of parameters to pass to execute method. The syntax used

0 commit comments

Comments
 (0)