Does PGM take csv or excel files? #29
-
Hello! I'm new to PGM, and I am wondering if PGM works with CSV or Excel files? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
Hi and welcome to our community! The You will need a mapping file that contains the conversion strategy for each column. The documentation will explain to you how to write one. If, however, you are looking for any data format you can use, we recommend using the PGM-native JSON schema or msgpack schema described in the documentation on serialization. I hope this answers your question. Please let me know if you have any additional questions. Martijn |
Beta Was this translation helpful? Give feedback.
Hi and welcome to our community!
The
power-grid-model
library does not directly support those data formats. However, we do have apower-grid-model-io
library with conversions to the PGM native data type. That library provides a Tabular converter for tabular data formats like CSV or Excel.You will need a mapping file that contains the conversion strategy for each column. The documentation will explain to you how to write one.
If, however, you are looking for any data format you can use, we recommend using the PGM-native JSON schema or msgpack schema described in the documentation on serialization.
I hope this answers your question. Please let me know if you have any additional questions.
M…