def _categorize_block(df, categories):
    df = df.copy()
    for col, vals in categories.items():
        df[col] = pd.Categorical(df[col], categories=vals, ordered=False)
    return df
An undefined name warning is emitted if a name in the I{test} expression of a  statement is undefined.
dataset/ETHPy150Open dask/dask/dask/dataframe/categorical.py/_categorize_block--crossover with--dataset/ETHPy150Open timothycrosley/frosted/frosted/test/test_other.py/test_withStatementUndefinedInExpression