-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
BUG: revert collision warning #17298
BUG: revert collision warning #17298
Conversation
Thanks a lot! One related thing is that it would be nice if one actually gets a warning when you try to overwrite a built-in so not assigning a column like Example with master:
(but didn't look in detail, so not sure if this is actually possible / easy to do) |
@deniederhut Can you also take a look at this comment on the warning message? #16951 (comment) |
Hi @jorisvandenbossche! I've updated the warning message to:
I have mixed feelings about warning on |
Codecov Report
@@ Coverage Diff @@
## master #17298 +/- ##
==========================================
- Coverage 91.03% 91.01% -0.02%
==========================================
Files 162 162
Lines 49567 49565 -2
==========================================
- Hits 45123 45112 -11
- Misses 4444 4453 +9
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17298 +/- ##
==========================================
- Coverage 91.15% 91.14% -0.02%
==========================================
Files 163 163
Lines 49591 49589 -2
==========================================
- Hits 45207 45196 -11
- Misses 4384 4393 +9
Continue to review full report at Codecov.
|
72a479d
to
d84af86
Compare
@jorisvandenbossche I've fixed the name that circle-ci was tripping on. Is this good to go? |
@deniederhut can you rebase this just to make sure no changes; ping on green. lgtm. |
Closes pandas-dev#17268 and reverts work from pandas-dev#16951 which warns users when creating a column whose name matches one of the methods defined on ndframes (e.g. 'sum' or 'mean'). The warning was deemed to be too much of a hindrance to the common use case of generating dataframes of summary statistics.
d84af86
to
422a701
Compare
thanks! |
😄 |
git diff upstream/master -u -- "*.py" | flake8 --diff
Reverts work in #16951 that warns when creating a column whose name collides with a method.