Skip to content

How to use pfs from_dataframe #519

Answered by jsmariegaard
Hendrik1987 asked this question in Q&A
Discussion options

You must be logged in to vote

Your points object is a PfsSection of PfsSections. It behaves like a dictionary, hence you should be able to do something like this:

for n, p in points.items():
    Out.OUTPUT_3[n] = p

.from_dataframe() is class method that returns a PfsSection.

sct = mikeio.PfsSection.from_dataframe(df)

Does that answer your questions?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Hendrik1987
Comment options

Answer selected by Hendrik1987
Comment options

You must be logged in to vote
2 replies
@Hendrik1987
Comment options

@Hendrik1987
Comment options

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