Skip to content

Conversation

@stahlous
Copy link
Contributor

This is another tweak to _setitem_with_indexer that allows it better to comprehend higher dimensional frames of mixed-dtype. With this tweak setting by indexer to a Series now works. Unfortunately setting to a DataFrame is still broken. I plan to open an issue for that.

Copy link
Contributor

Choose a reason for hiding this comment

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

add the issue number (eg this pr as a comment)

@jreback
Copy link
Contributor

jreback commented Nov 19, 2014

pls squash, otherwise looks good

Copy link
Contributor

Choose a reason for hiding this comment

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

actually this should be self.obj[item].axes[0]. The 0th axis. _stat_axis shouldn't work for a Panel4D because the Panel4D becomes a Panel (the self.obj[item]), and _stat_axis is 1. So it may happen to work. Maybe add a couple of tests here.

@jreback jreback added Compat pandas objects compatability with Numpy or Python functions Bug Indexing Related to indexing on series/frames, not to indexes themselves labels Nov 19, 2014
@jreback jreback added this to the 0.15.2 milestone Nov 19, 2014
Copy link
Contributor

Choose a reason for hiding this comment

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

why is any of this necessary? looks too complicated and error prone.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. This is turning out to be a lot less trivial than I originally thought.

Copy link
Contributor

Choose a reason for hiding this comment

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

why is this not always ._get_axis(0) ?

@jreback jreback modified the milestones: 0.16.0, 0.15.2 Nov 30, 2014
@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 3, 2015
@jreback
Copy link
Contributor

jreback commented May 9, 2015

closing pls reopen if/when updated

@jreback jreback closed this May 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Compat pandas objects compatability with Numpy or Python functions Indexing Related to indexing on series/frames, not to indexes themselves

2 participants