Skip to content

Instantly share code, notes, and snippets.

@j-bennet
Created November 25, 2019 16:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save j-bennet/2aefe79c0af40f870d6bb2703f94abca to your computer and use it in GitHub Desktop.
# 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