code: def test_only_subset_of_columns_given(self):
      data = [np.NINF, np.PINF, np.nan, 100.0, -100.0, 1.0, 1.0]
      truth_a = [-100.0, 100.0, 0.0, 100.0, -100.0, 1.0, 1.0]
      truth_b = [-100.0, 100.0, 1.0, 100.0, -100.0, 1.0, 1.0]
      X = pd.DataFrame({"a": data, "b": data})
      true_X = pd.DataFrame({"a": truth_a, "b": truth_b})
  
      col_to_median = {"a": 0}
      imputer = PerColumnImputer(col_to_NAN_repl_preset=col_to_median)
  
      imputer.fit(X)
      selected_X = imputer.transform(X)
  
      pdt.assert_frame_equal(selected_X, true_X)
  
imports: import warnings
  from builtins import range
  from unittest import TestCase
  import numpy
  import numpy.testing
  import pandas
  import pandas.testing
  from sklearn.exceptions import NotFittedError
  from tsfresh.transformers.per_column_imputer import PerColumnImputer
label_desc: Use image node_id 12 for calling the PerColumnImputerTestCase obj's underlying member method code with example usage: obj.test_only_subset_of_columns_given() without return types