Skip to content
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

Reindex with Series with name field drops name #812

Closed
wesm opened this issue Feb 22, 2012 · 0 comments
Closed

Reindex with Series with name field drops name #812

wesm opened this issue Feb 22, 2012 · 0 comments
Labels
Milestone

Comments

@wesm
Copy link
Member

wesm commented Feb 22, 2012

In [34]: df2.pivot('Date', 'Individual')
Out[34]: 
            Exercises    
Individual          1   2
Date                     
1/1/2001           10 NaN
1/3/2001          NaN   5

In [35]: df2.pivot('Date', 'Individual').reindex(df['Date'])
Out[35]: 
            Exercises    
Individual          1   2
1/1/2001           10 NaN
1/2/2001          NaN NaN
1/3/2001          NaN   5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants