You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to read mpt or mpr Files 'to_df' but due to the german system we are working on our decimal separators are comma. Is there a way to replace all comma with dots during import.
Example:
df = eclabfiles.to_df(filename)
My df type for a comma value is a tuple. For example I have got a value of 2,5V in my df the value is 2,5 but as [2, 5]. Do I need to combine all tuples and convert them to float?
The text was updated successfully, but these errors were encountered:
Hello Nils, we've added locale support to the mpt parsers in the maintained version of this extractor, see yadg.
Long story short, if you're extracting a mpt file on the same PC (i.e. the locale of the file and of your PC is consistent), it should just work, using:
Note that this returns an xarray.Dataset, not a pandas.DataFrame, so you have to have xarray installed. If you're extracting on a different machine and the locales might be different, please open an issue in the yadg repo and we can assist you.
Hallo Nicolas,
I want to read mpt or mpr Files 'to_df' but due to the german system we are working on our decimal separators are comma. Is there a way to replace all comma with dots during import.
Example:
df = eclabfiles.to_df(filename)
My df type for a comma value is a tuple. For example I have got a value of 2,5V in my df the value is 2,5 but as [2, 5]. Do I need to combine all tuples and convert them to float?
The text was updated successfully, but these errors were encountered: