-
-
Notifications
You must be signed in to change notification settings - Fork 17.6k
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
Correct ValueError invalid type promotion exception #13234
Conversation
df1 = pd.Series() | ||
df1["a"] = pd.Timestamp("2016-01-01") | ||
df1["b"] = 3.0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to compare here. use the full example from the issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the essence of the error (and corrected by the proposed fix). So you would like to have both df1 and df2 copied here from #12599?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well I would like to have a comparision for the expected on df1
. And since its a series, call it s
(and not df1).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Please review |
add a whatsnew. you should always add a whatsnew and tests on the very first push. that way I can look at an already done PR and just comment on changes, rather than having to go back and forth so much. |
@jreback The reason I'm not adding a whatnews early, as it conflicts (very) frequently ... I will rebase/squash in a minute. |
I thought I explained this first it doesn't really matter if he whatsnew conflicts - usually these go thru several iterations next you simply put them NOT AT THE END then you won't have conflicts - this is the reason for the blank lines in the bug fixes section |
Added whatsnew |
thanks @gliptak |
git diff upstream/master | flake8 --diff