in src/lookoutequipment/plot.py [0:0]
def _extract_series_timeseries(self, tag_name):
"""
Extracts all the data for the tag_name passed as an argument for dataset
that follows the ``timeseries`` format.
Parameters:
tag_name (string):
The name of the tag to extract
"""
# Extract the data for the current signal:
df = self._data[self._data[self.tag_col] == tag_name].copy()
# Remove the tag name from the column list and use it as a name for
# the last column remaining, that should contain the values:
df = df.drop(columns=[self.tag_col])
if self.timestamp_col is None:
df.columns = [tag_name]
else:
df.columns = [self.timestamp_col, tag_name]
return df