You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, data should have a __len__ method. However in some cases I'd like to pass a iterator with a known size (mostly in the case of database, where I can run the SELECT SUM(...) FROM table, for the size. Then SELECT * FROM table and pass the cursor as data.
Currently I need to create in memory copy of the rows in the cursor.
The text was updated successfully, but these errors were encountered:
From looking at DataFrame.from_records code, it looks like it first creates an array from all the rows and then allocate the DataFrame. If this is the case, then we still allocate twice the memory we need.
Currently,
data
should have a__len__
method. However in some cases I'd like to pass a iterator with a known size (mostly in the case of database, where I can run theSELECT SUM(...) FROM table
, for the size. ThenSELECT * FROM table
and pass the cursor asdata
.Currently I need to create in memory copy of the rows in the cursor.
The text was updated successfully, but these errors were encountered: