Skip to content

Conversation

@jbrockmendel
Copy link
Member

It takes a little bit of work to show, but self.index_axes is always length-1 on L4243, which means that nindexes == 1 (the assertion added in the code).

This ensures that the condition if i > 0 and i < nindexes on L4239 is is never satisfied, so bindexes is unnecessary.

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find. On board with this as well then @jreback

@WillAyd WillAyd added the Clean label Dec 4, 2019
@jorisvandenbossche jorisvandenbossche changed the title CLN: no need to broadcast axes for ndim<=2 CLN: no need to broadcast axes for ndim<=2 (pytables) Dec 4, 2019
@simonjayhawkins simonjayhawkins added this to the 1.0 milestone Dec 4, 2019
@jreback jreback merged commit 1fc4320 into pandas-dev:master Dec 4, 2019
@jreback
Copy link
Contributor

jreback commented Dec 4, 2019

thanks

@jbrockmendel jbrockmendel deleted the cln-pytables-bindexes branch December 4, 2019 16:55
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants