replaceSpecificValues()

The hec-python-library equivalent of Jython method replaceSpecificValues():

Not Implemented

This method is not implemented in release 1.1

The following example performs the equivalent:

Example 1:

old_val: float
new_val: float

ts.data["value"] = ts.data["value"].replace(old_val, new_val)

Warning

Directly manipulating the TimeSeries data property bypasses built-in consistency mechanisms. The user must ensure that the time series Parameter (including unit) and ParameterType are updated if necessary.