-
Notifications
You must be signed in to change notification settings - Fork 12
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
fix: skip infinite values during serialization #99
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #99 +/- ##
==========================================
+ Coverage 52.84% 53.26% +0.41%
==========================================
Files 33 33
Lines 2036 2037 +1
==========================================
+ Hits 1076 1085 +9
+ Misses 960 952 -8 ☔ View full report in Codecov by Sentry. |
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.
LGTM 🚀
Please back port this fix also to https://github.com/Influxdata/influxdb-client-python.
Fixes https://github.com/influxdata/EAR/issues/5299
Proposed Changes
np.inf
and-np.inf
values in a Pandas data frame are skipped during during serialization into line protocol.Other fixes:
polars.DataFrame.apply
(deprecated, and does not exists in latest version) withpolars.DataFrame.map_rows
replace()
withapply(lambda: )
to avoid future problemsChecklist