/pd_sql_query3.py Secret
Created
November 25, 2019 16:56
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# don't do this | |
pd.read_sql_query("select field1, field2, field3 from table1") | |
# do this | |
pd.read_sql_query("select field1, field2, field3 from table1 limit 1000") | |
# or this | |
pd.read_sql_query("select field1, field2, field3 from table1 where field1 = 'category1'") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment