need value only from recorded_value #801
-
|
I'm still fairly new to python and am trying to make an app that takes the place of using Excel to pull PI data. What I can't figure out is how to get the actual value ONLY from the result of recorded_value (so that I can put that in a dataframe along with other values for other tags at multiple times). I started down the path of converting the dict into a pandas series but that seemed ridiculous for something that needs to be quickly repeated. I can't find anything online that gives me the guidance and it's the last piece of the puzzle. Can someone please provide (what the PIConnect documentation is seemingly lacking)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I finally found an answer for this: |
Beta Was this translation helpful? Give feedback.
I finally found an answer for this:
tag_val=list(server.search(tag_name,point_list=True).recorded_value(dt_check).values())[-1][-1]