class_docstr: Tests for the various timeseries operations including rolling,
  resample and rolling_outliers_std.
class_docstr_tok: ["Tests","for","the","various","timeseries","operations","including","rolling",",","resample","and","rolling_outliers_std","."]
code: def test_roll_dates(self):
      rolled = rolling(self.date_curve, rolling_window=2)
      rolled_vals = [np.nan, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5]
      self.assertEqual(rolled, Curve((self.dates, rolled_vals)))
  
file_path: holoviews/holoviews/tests/operation/test_timeseriesoperations.py
imports: from unittest import skipIf
  import pandas
  import numpy
  from holoviews import Curve, Scatter
  from holoviews.element.comparison import ComparisonTestCase
  from holoviews.operation.timeseries import resample, rolling, rolling_outlier_std
label_desc: Use image node_id 2 for calling the TimeseriesOperationTests obj's underlying member method code with example usage: obj.test_roll_dates() without return types