Skip to content

Instantly share code, notes, and snippets.

@2tony2
Created July 5, 2024 16:14
Show Gist options
  • Save 2tony2/56acaffaf79691be050fd4f254f157dc to your computer and use it in GitHub Desktop.
Save 2tony2/56acaffaf79691be050fd4f254f157dc to your computer and use it in GitHub Desktop.
cursor = connection.cursor()
results = cursor.fetch_pandas_batches()
assert isinstance(results, Generator)
for result in results:
assert isinstance(result, PandasDataFrame)
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment