def test_onehotencoder():
    (X, _) = get_dummy_data(nrows=10, nfloat=0, nint=0, nchar=1, ndate=0)
    ohe = SkippaOneHotEncoder(cols=columns())
    res = ohe.fit_transform(X)
    n_distinct_values = X.iloc[:, 0].nunique(dropna=False)
    assert (res.shape[1] == n_distinct_values)
def test_onehotencoder():
    (X, _) = get_dummy_data(nrows=10, nfloat=0, nint=0, nchar=1, ndate=0)
    ohe = SkippaOneHotEncoder(cols=columns())
    res = ohe.fit_transform(X)
    n_distinct_values = X.iloc[:, 0].nunique(dropna=False)
    assert (res.shape[1] == n_distinct_values)