You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Sample code does not work. Window is not defined in the example.
To Reproduce
Run first sample code in github page
I fixed this by adding ts to the front window variable but I think the example should be updated.
This is what works - (ts added to ..ts.Window(22, 0)) )
import gs_quant.timeseries as ts
x = ts.generate_series(1000) # Generate random timeseries with 1000 observations
vol = ts.volatility(x, ts.Window(22, 0)) # Compute realized volatility using a window of 22 and a ramp up value of 0
vol.tail()
The text was updated successfully, but these errors were encountered:
@gautambak The code is missing a print() statement:
importgs_quant.timeseriesastsx=ts.generate_series(1000) # Generate random timeseries with 1000 observationsvol=ts.volatility(x, ts.Window(22, 0)) # Compute realized volatility using a window of 22 and a ramp up value of 0print(vol.tail())
Describe the bug
Sample code does not work. Window is not defined in the example.
To Reproduce
Run first sample code in github page
I fixed this by adding ts to the front window variable but I think the example should be updated.
This is what works - (ts added to ..ts.Window(22, 0)) )
import gs_quant.timeseries as ts
x = ts.generate_series(1000) # Generate random timeseries with 1000 observations
vol = ts.volatility(x, ts.Window(22, 0)) # Compute realized volatility using a window of 22 and a ramp up value of 0
vol.tail()
The text was updated successfully, but these errors were encountered: