docstr: ...Test column type detection
          
docstr_tok: ["...","Test","column","type","detection"]
code: def test_column_type_detection(self):
      """...Test column type detection"""
      expected_column_types = [
          "continuous",
          "continuous",
          "discrete",
          "discrete",
      ]
  
      for i, expected_type in enumerate(expected_column_types):
          # auto detection and default continuous_threshold
          features_i = self.features[:, i]
          detected_type = FeaturesBinarizer._detect_feature_type(
              features_i,
              detect_column_type="auto",
              continuous_threshold="auto",
          )
          self.assertEqual(
              expected_type, detected_type, "failed for column %i" % i
          )
  
          # auto detection and continuous_threshold=7
          detected_type = FeaturesBinarizer._detect_feature_type(
              features_i,
              detect_column_type="auto",
              continuous_threshold=7,
          )
          self.assertEqual(
              expected_type, detected_type, "failed for column %i" % i
          )
  
          # column name detection
          detected_type = FeaturesBinarizer._detect_feature_type(
              features_i,
              detect_column_type="column_names",
              feature_name=self.columns[i],
          )
          self.assertEqual(
              expected_type, detected_type, "failed for column %i" % i
          )
  
      expected_column_types_with_threshold_equal_2 = [
          "continuous",
          "continuous",
          "discrete",
          "discrete",
      ]
  
      for i, expected_type in enumerate(
          expected_column_types_with_threshold_equal_2
      ):
          # auto detection and continuous_threshold=2
          features_i = self.features[:, i]
          detected_type = FeaturesBinarizer._detect_feature_type(
              features_i,
              detect_column_type="auto",
              continuous_threshold=2,
          )
          self.assertEqual(
              expected_type, detected_type, "failed for column %i" % i
          )
  
file_path: tick/tick/preprocessing/tests/features_binarizer_test.py
imports: import unittest
  import numpy
  import pandas
  from sklearn.preprocessing import OneHotEncoder
  from scipy.sparse import csr
  from tick.preprocessing.features_binarizer import FeaturesBinarizer
label_desc: Use image node_id 2 for calling the Test obj's underlying member method code with example usage: obj.test_column_type_detection() without return types