Skip to content

shifting across blocks results in NaNs if dataframe has multiple blocks (mixed types) #11061

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hhuuggoo opened this issue Sep 11, 2015 · 2 comments
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Reshaping Concat, Merge/Join, Stack/Unstack, Explode

Comments

@hhuuggoo
Copy link

variant of #10907

In [1]: import pandas as pd

In [2]: df = pd.DataFrame({'a' : [1],'b':[2]})

In [3]: df
Out[3]: 
   a  b
0  1  2

In [4]: df['c'] = 3.5

In [5]: df.shift(axis=1)
Out[5]: 
    a  b   c
0 NaN  1 NaN
@hhuuggoo hhuuggoo changed the title shift does not work if dataframe has multiple blocks (mixed types) shifting across blocks results in NaNs if dataframe has multiple blocks (mixed types) Sep 11, 2015
@jreback jreback added Bug Reshaping Concat, Merge/Join, Stack/Unstack, Explode Dtype Conversions Unexpected or buggy dtype conversions labels Sep 11, 2015
@jreback jreback added this to the Next Major Release milestone Sep 11, 2015
@ajcr
Copy link
Contributor

ajcr commented Sep 12, 2015

This bug is also highlighted in issue 10539.

@jreback
Copy link
Contributor

jreback commented Sep 12, 2015

right this is a dupe

@jreback jreback closed this as completed Sep 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

No branches or pull requests

3 participants