statsmodels.tools.tools.categorical
statsmodels.tools.tools.categorical(data, col=None, dictnames=False, drop=False) [source]
Returns a dummy matrix given an array of categorical variables. Parameters:
data : array A structured array, recarray, or array. This can be either a 1d vector of the categorical variable or a 2d array with the column specifying the categorical variable specified by the col argument. col : ?string?, int, or None If data is a structured array or a recarray, col can