-
Notifications
You must be signed in to change notification settings - Fork 45
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
Handle missing value #16
Comments
I am just running in this issue: I have CSV files with temperature measurements, and some missing values (empty cells in the CSV files). I forked this project, and modified the in this branch such that missing values (defined as '1,,3' or '1, ,3') are replaced by a string provided by the user, e.g.,: call f%read('file.csv', missing = '-9999', status_ok= status_ok) It does the job for my case. But I may overlook things. |
I think that this is an important enhancement. Is there a reason why @jvdp1's fork changes cannot be imported? |
Hi. I don't know. Probably because I never open a PR? If @jacobwilliams agrees, I can open a PR from my fork. |
Sure! Send a pull request and I'll look at it. |
Here is the test CSV file:
And with following codes:
The output is:
As you can see, the second value is expected to be missing value, but I got
0.000000000000000E+000
, which may cause difficulty to judge whether the value is valid or not. Can we specify the missing value when get as:The text was updated successfully, but these errors were encountered: