-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DataFrame.append with empty list raises IndexError #28769
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
Comments
What output are you hoping to see here? Still an empty DataFrame? |
I guess the source DataFrame() is expected since an empty sequence is just empty and there is nothing to append. Like this
|
Seems reasonable. A PR would be welcome. |
5 tasks
5 tasks
jreback
pushed a commit
that referenced
this issue
Nov 16, 2019
Reksbril
pushed a commit
to Reksbril/pandas
that referenced
this issue
Nov 18, 2019
proost
pushed a commit
to proost/pandas
that referenced
this issue
Dec 19, 2019
proost
pushed a commit
to proost/pandas
that referenced
this issue
Dec 19, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Code Sample
Problem description
Crash when passing empty sequence to
DataFrame.append
Expected Output
No crash.
The source DataFrame is returned intact.
Version
Version 0.25.1. Happens in master.
Problem line
https://github.com/pandas-dev/pandas/blob/master/pandas/core/frame.py#L7014
The text was updated successfully, but these errors were encountered: