def test_most_common_int(self): data = pd.Series([1, 1, 2, 4, 2, 5]) data = pd.DataFrame(data, columns=['col1']) df = Data(data, test_split_percentage=0.5) df.most_common('col1', plot=True, use_test=True) self.assertTrue(True)
def test_most_common_list(self): data = pd.Series([['hi', 'aethos'], ['hi', 'py-automl'], [], ['hi']]) data = pd.DataFrame(data, columns=['col1']) df = Data(data, split=False) df.most_common('col1', plot=True) self.assertTrue(True)
def test_most_common_str(self): data = pd.Series([ 'hi aethos', 'aethos is awesome', 'hi', 'py-automl is the old name', 'hi everyone' ]) data = pd.DataFrame(data, columns=['col1']) df = Data(data, split=False) df.most_common('col1') self.assertTrue(True)