-
Notifications
You must be signed in to change notification settings - Fork 7
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
prevent strings being parsed as nan in get_visualization_df #193
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #193 +/- ##
========================================
Coverage 78.07% 78.07%
========================================
Files 32 32
Lines 2914 2915 +1
Branches 690 690
========================================
+ Hits 2275 2276 +1
Misses 461 461
Partials 178 178
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
petab/core.py
Outdated
@@ -65,7 +65,8 @@ def get_visualization_df(visualization_file: Union[str, Path]) -> pd.DataFrame: | |||
""" | |||
try: | |||
vis_spec = pd.read_csv(visualization_file, sep="\t", index_col=None, | |||
float_precision='round_trip') | |||
float_precision='round_trip', | |||
keep_default_na=False) |
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, I would prefer going via dtype
to avoid potential issues elsewhere. That should also solve the issue, right?
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.
dtype didn't help, but converters did
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.
👍
No description provided.