Skip to content

PERF: generators in dataframe.from_records #6700

Closed
@westurner

Description

@westurner

itertools.islice would be faster than n*comparisons here:

https://github.com/pydata/pandas/blob/88c4c5526b38194f00a00c207ee5388dfd508092/pandas/core/frame.py#L759

Not sure whether to amortize an import itertoosl or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PerformanceMemory or execution speed performance

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions