We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba78c72 commit fac94dfCopy full SHA for fac94df
docs/source/api.rst
@@ -151,6 +151,25 @@ Amazon Athena
151
list_prepared_statements
152
delete_prepared_statement
153
154
+ read_sql_query(sql, con, **kwargs)
155
+----------------------------------
156
+
157
+Executes a SQL query and returns the result as a Pandas DataFrame.
158
159
+**Example**:
160
161
+.. code-block:: python
162
163
+ import awswrangler as wr
164
+ import sqlalchemy
165
166
+ # Create SQLAlchemy engine for MySQL
167
+ engine = sqlalchemy.create_engine("mysql+pymysql://user:password@host/dbname")
168
169
+ # Run SQL query and get results into Pandas DataFrame
170
+ df = wr.read_sql_query("SELECT * FROM employees", con=engine)
171
172
173
Amazon Redshift
174
---------------
175
0 commit comments