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

Buglet in Dataframe.append with no index #782

adamklein opened this issue Feb 15, 2012 · 0 comments


Copy link

commented Feb 15, 2012

This works as expected:

    df = DataFrame(index=[0], columns=['A', 'B', 'C'])
    df3 = DataFrame(index=[1, 2], columns=['A', 'B'])
    df5 = df.append(df3)

    expected = DataFrame({'A': [nan, nan, nan],
                          'B': [nan, nan, nan],
                          'C': [nan, nan, nan]})

This doesn't:

    df = DataFrame(columns=['A', 'B', 'C'])
    df3 = DataFrame(index=[0, 1], columns=['A', 'B'])
    df5 = df.append(df3)

    expected = DataFrame({'A': [nan, nan],
                          'B': [nan, nan],
                          'C': [nan, nan]})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.