Skip to content

Does PGM take csv or excel files? #29

Discussion options

You must be logged in to vote

Hi and welcome to our community!

The power-grid-model library does not directly support those data formats. However, we do have a power-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…

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@PowerIsKnowledgeOrSomething
Comment options

@PowerIsKnowledgeOrSomething
Comment options

@mgovers
Comment options

@PowerIsKnowledgeOrSomething
Comment options

@mgovers
Comment options

Answer selected by PowerIsKnowledgeOrSomething
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants