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

wesm opened this issue Mar 29, 2012 · 0 comments


Copy link

commented Mar 29, 2012

from mailing list

import pandas
import numpy as np
import pandas
print pandas.__version__

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]],
df2 = df2.set_index(['A'])
print df1.append(df2).index.names

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