Skip to content

DataFrame.from_records should have an optional "size" parameter #1794

Closed
@tebeka

Description

@tebeka

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions