Skip to content

Commit

Permalink
type of timestamp index should be timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-rocket committed May 15, 2024
1 parent b72ced5 commit 7b61388
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/data_agent_osisoft_pi/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ def read_tag_values_period(
if result_format == "dataframe":
df = pd.concat(tag_series, axis=1, sort=True)
df.index.name = "timestamp"
df.index = pd.to_datetime(df.index)
return df
elif result_format == "series":
return tag_series if len(tag_series) > 1 else tag_series[0]
Expand Down

0 comments on commit 7b61388

Please sign in to comment.