docstr: Test to see if other frequencies transforms like second to minute work as well.
docstr_tok: ["Test","to","see","if","other","frequencies","transforms","like","second","to","minute","work","as","well","."]
code: def test_from_second_to_minute(self):
      """
      Test to see if other frequencies transforms like second to minute work as well.
      """
  
      second_times = pd.date_range(
          start="01-2020", periods=120, freq="S"
      )
      second_values = np.arange(1, len(second_times) + 1)
      second_ts = TimeSeries.from_times_and_values(
          times=second_times, values=second_values, columns=["values"]
      )
  
      minute_times = pd.date_range(start="01-2020", periods=2, freq="T")
      minute_values = np.array(
          [[i for i in range(1, 61)], [i for i in range(61, 121)]]
      )
      minute_ts = TimeSeries.from_times_and_values(
          times=minute_times,
          values=minute_values,
          columns=[f"values_midas_{i}" for i in range(60)],
      )
  
      midas = MIDAS(low_freq="T")
      minute_ts_midas = midas.fit_transform(second_ts)
      assert minute_ts_midas == minute_ts
      second_ts_midas = midas.inverse_transform(minute_ts_midas)
      assert second_ts_midas == second_ts
  
imports: import numpy
  import pandas
  import pytest
  from darts import TimeSeries
  from darts.dataprocessing.transformers import MIDAS
  from darts.models import LinearRegressionModel
  from darts.utils.timeseries_generation import generate_index, linear_timeseries
label_desc: Use image node_id 8 for calling the TestMIDAS obj's underlying member method code with example usage: obj.test_from_second_to_minute() without return types