3. patsy.categorical

3.1. Functions

C(data[, contrast, levels]) Marks some data as being categorical, and specifies how to interpret it.
assert_no_pickling(obj)
categorical_to_int(data, levels, NA_action)
guess_categorical(data)
iterable(obj)
no_pickling(*args, **kwargs)
pandas_Categorical_categories(cat)
pandas_Categorical_codes(cat)
pandas_Categorical_from_codes(codes, categories)
safe_is_pandas_categorical(data)
safe_issubdtype(dt1, dt2)
safe_scalar_isnan(x)
test_C()
test_CategoricalSniffer()
test_categorical_to_int()
test_guess_categorical()

3.2. Classes

CategoricalSniffer(NA_action[, origin])
SortAnythingKey(obj)

3.3. Exceptions

PatsyError(message[, origin]) This is the main error type raised by Patsy functions.