How to use pfs from_dataframe #519
-
I have a pfs template with a dummy point output of one point and try to update this with a list of points from a dataframe The output in the template looks like this: I can update the number of points and create pfs section of points from my dataframe: However, I can't figure out how to replace the existing I have tried:
Furthermore, I don't fully get
I have not managed to find the answers in the docs or example. Hence, thanks for any hints! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Your
.from_dataframe() is class method that returns a PfsSection.
Does that answer your questions? |
Beta Was this translation helpful? Give feedback.
-
I am not sure why you're trying to access OUTPUT_3[0]. OUTPUT_3 is a PfsSection dict-like structure and the keys (including subsections) are of str type. The intention with
was to get key-value pairs like this:
But the code is could be wrong - I did not test. |
Beta Was this translation helpful? Give feedback.
Your
points
object is a PfsSection of PfsSections. It behaves like a dictionary, hence you should be able to do something like this:.from_dataframe() is class method that returns a PfsSection.
Does that answer your questions?