From d2bc2fec54bc97c57f28f8d75a39d5ef9c35fb82 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Wed, 8 Oct 2014 17:15:55 +0200 Subject: [PATCH] DOC: fix example sql chunksize --- doc/source/io.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/io.rst b/doc/source/io.rst index 5490e666904f9..70d5c195233c3 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -3421,7 +3421,7 @@ Specifying this will return an iterator through chunks of the query result: .. ipython:: python - for chunk in pd.read_sql_query("SELECT * FROM data_chunks", engine, chunksize): + for chunk in pd.read_sql_query("SELECT * FROM data_chunks", engine, chunksize=5): print(chunk) You can also run a plain query without creating a dataframe with