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

DataFrame.append can lose index name #980

Closed
wesm opened this issue Mar 29, 2012 · 0 comments

Comments

@wesm
Copy link
Member

commented Mar 29, 2012

from mailing list

import pandas
import numpy as np
import pandas
print pandas.__version__
0.7.2.dev-12d511f


df1 = pandas.DataFrame(data=None, columns=['A','B','C'])
df1 = df1.set_index(['A'])
df2 = pandas.DataFrame(data=[[1,4,7],[2,5,8],[3,6,9]],
columns=['A','B','C'])
df2 = df2.set_index(['A'])
print df1.append(df2).index.names

[None]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.