Skip to content

Conversation

jorisvandenbossche
Copy link
Member

I noticed that the current df.reindex(columns=idx) benchmark uses an indexer with all-non-existing indices (it uses range(4000, 7000) as indexer, but there are only 1000 columns), so basically it is benchmarking to create empty (all-NaN) columns. Therefore added a case of reindexing with an indexer consisting of existing column labels.

For reindexing the rows, it's already using existing row labels.

@jorisvandenbossche jorisvandenbossche added the Benchmark Performance (ASV) benchmarks label Mar 5, 2021
@jreback jreback added this to the 1.3 milestone Mar 5, 2021
@jreback jreback merged commit 0cae716 into pandas-dev:master Mar 5, 2021
@jreback
Copy link
Contributor

jreback commented Mar 5, 2021

cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Benchmark Performance (ASV) benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants