code: def test_transform_series_float(self, algo):
      arr = np.array([1, 2, 3, 1, 2, 3, 1, 2, 3], dtype=np.float)
      s = pdml.ModelSeries(arr, index="a b c d e f g h i".split(" "))
  
      # reshape arr to 2d
      arr = arr.reshape(-1, 1)
  
      mod1 = getattr(s.preprocessing, algo)()
      mod2 = getattr(pp, algo)()
  
      s.fit(mod1)
      mod2.fit(arr)
  
      result = s.transform(mod1)
      expected = mod2.transform(arr).flatten()
  
      self.assertIsInstance(result, pdml.ModelSeries)
      self.assert_numpy_array_almost_equal(result.values, expected)
  
      mod1 = getattr(s.preprocessing, algo)()
      mod2 = getattr(pp, algo)()
  
      result = s.fit_transform(mod1)
      expected = mod2.fit_transform(arr).flatten()
  
      self.assertIsInstance(result, pdml.ModelSeries)
      self.assert_numpy_array_almost_equal(result.values, expected)
  
imports: import pytest
  import numpy
  import pandas
  import sklearn.datasets
  import sklearn.preprocessing
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 14 for calling the TestPreprocessing obj's underlying member method code with example usage: obj.test_transform_series_float(algo) without return types