-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Revert "ERR: Raise ValueError when setting scalars in a dataframe with no index ( #16823) (#16968)" #17902
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
Conversation
…h no index ( pandas-dev#16823) (pandas-dev#16968)" This reverts commit f9ba6fe.
so revert puts us back to original. we still are changing the column dtype, though the value is not assigned. |
I think this is nice
I agree, I will look at it |
Codecov Report
@@ Coverage Diff @@
## master #17902 +/- ##
==========================================
- Coverage 91.23% 91.22% -0.02%
==========================================
Files 163 163
Lines 50105 50101 -4
==========================================
- Hits 45715 45703 -12
- Misses 4390 4398 +8
Continue to review full report at Codecov.
|
anyone want to warn on this operation? |
@toobaz btw watched your talk at EuroPython: https://www.youtube.com/watch?v=4JwpDGrMsJE very nice! |
Thanks! I was asked to replicate at a couple of other conferences, so any suggestions to improve are welcome. |
near the end of your talk
I would also show [24], as it is idiomatic, slightly slower but handles NaN values |
Aha, cool, I had missed this, thanks. |
ok reverting for now. any thoughts on warning though? |
I didn't reply above because I'm slightly against introducing warnings in this case - I consider warnings as something helping you understand the implementation caveats, not the API. But this might be a personal view. On the other hand, I think that once we also fix #17895 we should clearly document the behavior in the docs. |
…h no index ( pandas-dev#16823) (pandas-dev#16968)" (pandas-dev#17902) * Revert "ERR: Raise ValueError when setting scalars in a dataframe with no index ( pandas-dev#16823) (pandas-dev#16968)" This reverts commit f9ba6fe. * TST: expicit test on setting scalars on empty frame closes pandas-dev#17894
…h no index ( pandas-dev#16823) (pandas-dev#16968)" (pandas-dev#17902) * Revert "ERR: Raise ValueError when setting scalars in a dataframe with no index ( pandas-dev#16823) (pandas-dev#16968)" This reverts commit f9ba6fe. * TST: expicit test on setting scalars on empty frame closes pandas-dev#17894
…h no index ( pandas-dev#16823) (pandas-dev#16968)" (pandas-dev#17902) * Revert "ERR: Raise ValueError when setting scalars in a dataframe with no index ( pandas-dev#16823) (pandas-dev#16968)" This reverts commit f9ba6fe. * TST: expicit test on setting scalars on empty frame closes pandas-dev#17894
closes #17894
xref #16823