Skip to content

Commit 1fc1ba8

Browse files
author
duozhang
committed
* added doc for parameter 'coerce_float' in io.sql.read_frame
1 parent af60d93 commit 1fc1ba8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/io/sql.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ def read_frame(sql, con, index_col=None, coerce_float=True):
139139
con: DB connection object, optional
140140
index_col: string, optional
141141
column name to use for the returned DataFrame object.
142+
coerce_float : boolean, default True
143+
Attempt to convert values to non-string, non-numeric objects (like
144+
decimal.Decimal) to floating point, useful for SQL result sets
142145
"""
143146
cur = execute(sql, con)
144147
rows = _safe_fetch(cur)

0 commit comments

Comments
 (0)