-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Data format #722
Comments
@sakshamg94 can you post a sample CSV with a comma in it? Could be something going on in the exporting step. |
see row. 1348 (pms payloads). Converted csv to xlsx for posting on github (csv not supported) |
I’d recommend zipping the file for attachment to avoid the possibility of excel changing the formatting on its own (this happened with @nokton’s investigation) |
I see. good idea. Here (should be row 1347 or 1348) |
among the
pms_pm_01_0
and similarly for other radiation and PM fields, the numbers have commas in them such that they land as strings when i import data from the CSVslike
1,000
instead of1000
commas are not supported in float dtype. so i think if json to csv results in figures with commas in them, then irrespective of the platform (I have checked on Python), we should see those inconsistencies
Here's how I fix it using Pandas library (Py):
df['pms_pm01_0'] = df['pms_pm01_0'].astype(str).str.replace(',', '').astype(float)
The text was updated successfully, but these errors were encountered: