docstr: Check that an univariate monthly series not aligned with quarters is transformed into a quarterly series
  in the expected way.
docstr_tok: ["Check","that","an","univariate","monthly","series","not","aligned","with","quarters","is","transformed","into","a","quarterly","series","in","the","expected","way","."]
code: def test_not_complete_monthly_to_quarterly(self):
      """
      Check that an univariate monthly series not aligned with quarters is transformed into a quarterly series
      in the expected way.
      """
      # monthly series with missing values
      midas = MIDAS(low_freq="QS", strip=False)
      quarterly_not_complete_ts_midas = midas.fit_transform(
          self.monthly_not_complete_ts
      )
      assert (
          quarterly_not_complete_ts_midas
          == self.quarterly_not_complete_ts
      )
  
      inversed_quarterly_not_complete_ts_midas = (
          midas.inverse_transform(quarterly_not_complete_ts_midas)
      )
      assert (
          self.monthly_not_complete_ts
          == inversed_quarterly_not_complete_ts_midas
      )
  
      # when strip=True we only get 1 one quarter with all 3 months
      midas = MIDAS(low_freq="QS", strip=True)
      quarterly_not_complete_ts_midas = midas.fit_transform(
          self.monthly_not_complete_ts
      )
      assert (
          quarterly_not_complete_ts_midas
          == self.quarterly_not_complete_ts[1:2]
      )
  
      inversed_quarterly_not_complete_ts_midas = (
          midas.inverse_transform(quarterly_not_complete_ts_midas)
      )
      assert (
          self.monthly_not_complete_ts[1:4]
          == inversed_quarterly_not_complete_ts_midas
      )
  
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 2 for calling the TestMIDAS obj's underlying member method code with example usage: obj.test_not_complete_monthly_to_quarterly() without return types