Skip to content

BUG/TST: Allow generators in DataFrame.from_records #4910

@tinproject

Description

@tinproject

With 0.12 and development version it's not possible fo feed a generator to Dataframe.from_records if nrows = None, it leds to a TypeError exception see: http://stackoverflow.com/questions/18915941/create-a-pandas-dataframe-from-generator

It's no clear whats nrows do, it's not documented.

I've create a PR with a simple fix without touch nrows, and two tests for generator data input.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignIO DataIO issues that don't fit into a more specific label

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions