def test_numeric_is_continuous_4(self): """ Test float and categorical series """ s = pd.Series([0.2, 0.2, 0.2, 0.6, 0.6, 0.6]) assert numeric_is_continuous(s) is False
def test_numeric_is_continuous_2(self): """ Test float and continuous series """ s = pd.Series(np.linspace(0, 1, 100)) assert numeric_is_continuous(s) is True
def test_numeric_is_continuous_3(self): """ Test int and categorical series """ s = pd.Series([1, 1, 1, 2, 2, 2]) assert numeric_is_continuous(s) is False
def test_numeric_is_continuous_1(self): """ Test int and continuous series """ s = pd.Series(list(range(50))) assert numeric_is_continuous(s) is True