Пример #1
0
 def test_integer_many_unique_values(self):
     s = pd.Series(range(15))
     assert not series_looks_categorical(s)
Пример #2
0
 def test_float_series(self):
     s = pd.Series([0.5, 0.8])
     assert not series_looks_categorical(s)
Пример #3
0
 def test_integer_few_unique_values(self):
     s = pd.Series([1, 2, 3] * 5)
     assert series_looks_categorical(s)
Пример #4
0
 def test_object_series(self):
     s = pd.Series(["a", "b"], dtype=object)
     assert series_looks_categorical(s)