-
Notifications
You must be signed in to change notification settings - Fork 207
Fix gpd UserWarning when plotting with color & column params #441
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #441 +/- ##
==========================================
+ Coverage 95.94% 96.38% +0.43%
==========================================
Files 34 35 +1
Lines 4239 4256 +17
==========================================
+ Hits 4067 4102 +35
+ Misses 172 154 -18 ☔ View full report in Codecov by Sentry. |
movingpandas/trajectory_plotter.py
Outdated
color=line_gdf["color"], | ||
*self.args, | ||
**{ | ||
x: self.kwargs[x] for x in self.kwargs if x != "column" |
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.
I think self.kwargs.pop("column") would be more readable
Hi @anitagraser - I was hesitant to modify the original kwargs dict at first but I think it should be fine (and yes definitely easier to read). |
Fixes #438