From 1fc1ba8535a8968caa1d8fbc9aefe9e99344e82e Mon Sep 17 00:00:00 2001 From: duozhang Date: Fri, 28 Jun 2013 13:48:36 +0800 Subject: [PATCH 1/2] * added doc for parameter 'coerce_float' in io.sql.read_frame --- pandas/io/sql.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 0caf83838fb2d..bc8afa3491689 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -139,6 +139,9 @@ def read_frame(sql, con, index_col=None, coerce_float=True): con: DB connection object, optional index_col: string, optional column name to use for the returned DataFrame object. + coerce_float : boolean, default True + Attempt to convert values to non-string, non-numeric objects (like + decimal.Decimal) to floating point, useful for SQL result sets """ cur = execute(sql, con) rows = _safe_fetch(cur) From 27cc657cf5ab478065130bbee40a86cecd3b2a52 Mon Sep 17 00:00:00 2001 From: duozhang Date: Fri, 28 Jun 2013 14:01:24 +0800 Subject: [PATCH 2/2] adjusted the indentation of doc of io.sql.read_frame --- pandas/io/sql.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/io/sql.py b/pandas/io/sql.py index bc8afa3491689..d98fcfa5bafb2 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -140,8 +140,8 @@ def read_frame(sql, con, index_col=None, coerce_float=True): index_col: string, optional column name to use for the returned DataFrame object. coerce_float : boolean, default True - Attempt to convert values to non-string, non-numeric objects (like - decimal.Decimal) to floating point, useful for SQL result sets + Attempt to convert values to non-string, non-numeric objects (like + decimal.Decimal) to floating point, useful for SQL result sets """ cur = execute(sql, con) rows = _safe_fetch(cur)