-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: DataFrame.loc/iloc fails to update object with new dtype GH24269 #24383
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
Hello @slnguyen! Thanks for updating the PR.
Comment last updated on December 21, 2018 at 18:31 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #24383 +/- ##
==========================================
- Coverage 92.29% 92.29% -0.01%
==========================================
Files 162 162
Lines 51845 51849 +4
==========================================
+ Hits 47852 47855 +3
- Misses 3993 3994 +1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #24383 +/- ##
==========================================
+ Coverage 92.29% 92.3% +<.01%
==========================================
Files 162 162
Lines 51845 51879 +34
==========================================
+ Hits 47852 47888 +36
+ Misses 3993 3991 -2
Continue to review full report at Codecov.
|
@slnguyen : Good start! Going to need to add a new test + |
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.
the first thing you need is a test, before any code changes. the indexing code is quite complicated.
@@ -630,6 +630,17 @@ def can_do_equal_len(): | |||
self.obj[item_labels[indexer[info_axis]]] = value | |||
return | |||
|
|||
if isinstance(value, ABCDataFrame): |
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 very complicated and likely does not belong here. you would need to heavily comment this and explain line by line.
closing as stale if you want to continue working, please ping. |
git diff upstream/master -u -- "*.py" | flake8 --diff