Skip to content

PERF: find_stack_level #45099

Closed
Closed
@jbrockmendel

Description

@jbrockmendel

Profiling pandas/tests/groupby/test_function.py::test_builtins_apply I'm seeing 18.78 seconds spent in groupby.apply, with 14.06 of that spent in 1732 calls of find_stack_level.

Maybe we can make find_stack_level lazy so it is only called when the warning is actually issued?

Metadata

Metadata

Assignees

Labels

PerformanceMemory or execution speed performanceWarningsWarnings that appear or should be added to pandas

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions