I am pulling data from Oracle db using pyodbc and pandas read_sql.
I see no errors when I enter this line
df = pd.read_sql(sql_str,cnxn,chunksize=10)
But when I try to see
df
I get this error
<generator object _query_iterator at 0x092D40F8>
My search as to what this error means or what could be causing it yielded no satisfactory answers.
The reason for using chunksize is that I have a Oracle db table with 60 million rows, and plan to download in bits and then put them together, just like here: How to create a large pandas dataframe from an sql query without running out of memory?