fix: Add .copy() to prevent SettingWithCopyWarning in histogram.py#37742
fix: Add .copy() to prevent SettingWithCopyWarning in histogram.py#37742RamiNoodle733 wants to merge 1 commit intoapache:masterfrom
Conversation
Fixes apache#36530 - The df.dropna() returns a view which causes a Pandas SettingWithCopyWarning when modifying the column. Adding .copy() ensures we're working with a copy of the DataFrame.
Code Review Agent Run #1bea82Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
|
closing since there are multiple PRs for this fix. It looks like the same pr may have been opened multiple times. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #37742 +/- ##
===========================================
+ Coverage 0 66.21% +66.21%
===========================================
Files 0 647 +647
Lines 0 49540 +49540
Branches 0 5568 +5568
===========================================
+ Hits 0 32803 +32803
- Misses 0 15435 +15435
- Partials 0 1302 +1302
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Fixes #36530
The df.dropna() returns a view which causes a Pandas SettingWithCopyWarning when modifying the column. Adding .copy() ensures we're working with a copy of the DataFrame.