code: def test_transform_1d_frame_float(self, algo):
      arr = np.array([1, 2, 3, 1, 2, 3, 1, 2, 3], dtype=np.float)
      idx = pd.Index("a b c d e f g h i".split(" "))
      df = pdml.ModelFrame(arr, index=idx, columns=["X"])
      self.assertEqual(len(df.columns), 1)
  
      # reshape arr to 2d
      arr = arr.reshape(-1, 1)
  
      mod1 = getattr(df.preprocessing, algo)()
      mod2 = getattr(pp, algo)()
      self._assert_transform(df, arr, mod1, mod2)
  
      mod1 = getattr(df.preprocessing, algo)()
      mod2 = getattr(pp, algo)()
      self._assert_fit_transform(df, arr, mod1, mod2)
  
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 12 for calling the TestPreprocessing obj's underlying member method code with example usage: obj.test_transform_1d_frame_float(algo) without return types