def test_is_categorical(): """ Check if the given dataset given a columns is categorical or not. :raises AssertionError: { exception_description } """ df = pd.read_csv( os.path.join(os.path.dirname(__file__), 'data', 'Freedman.csv')) check = Check() assert check.is_categorical(df['Location']) == True
def test_is_categorical_1(): df = pd.read_csv( os.path.join(os.path.dirname(__file__), 'data', 'Freedman.csv')) check = Check() assert check.is_categorical(df['Location']) == True