Skip to content

Commit 4ba1c14

Browse files
Merge pull request #11277 from azuranski/patch-1
Update sql.py
2 parents cac4ad2 + c3800c7 commit 4ba1c14

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/io/sql.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,8 @@ def read_sql_table(table_name, con, schema=None, index_col=None,
309309
schema : string, default None
310310
Name of SQL schema in database to query (if database flavor
311311
supports this). If None, use default schema (default).
312-
index_col : string, optional, default: None
313-
Column to set as index
312+
index_col : string or list of strings, optional, default: None
313+
Column(s) to set as index(MultiIndex)
314314
coerce_float : boolean, default True
315315
Attempt to convert values to non-string, non-numeric objects (like
316316
decimal.Decimal) to floating point. Can result in loss of Precision.
@@ -384,8 +384,8 @@ def read_sql_query(sql, con, index_col=None, coerce_float=True, params=None,
384384
Using SQLAlchemy makes it possible to use any DB supported by that
385385
library.
386386
If a DBAPI2 object, only sqlite3 is supported.
387-
index_col : string, optional, default: None
388-
Column name to use as index for the returned DataFrame object.
387+
index_col : string or list of strings, optional, default: None
388+
Column(s) to set as index(MultiIndex)
389389
coerce_float : boolean, default True
390390
Attempt to convert values to non-string, non-numeric objects (like
391391
decimal.Decimal) to floating point, useful for SQL result sets
@@ -443,8 +443,8 @@ def read_sql(sql, con, index_col=None, coerce_float=True, params=None,
443443
Using SQLAlchemy makes it possible to use any DB supported by that
444444
library.
445445
If a DBAPI2 object, only sqlite3 is supported.
446-
index_col : string, optional, default: None
447-
column name to use as index for the returned DataFrame object.
446+
index_col : string or list of strings, optional, default: None
447+
Column(s) to set as index(MultiIndex)
448448
coerce_float : boolean, default True
449449
Attempt to convert values to non-string, non-numeric objects (like
450450
decimal.Decimal) to floating point, useful for SQL result sets

0 commit comments

Comments
 (0)