denormalize
- FactorMixin.denormalize(data)[source]
Denormalizes the data coming from this factor. A categorical factor is denormalized from an array of numbers with values from 0 until the number of levels, to an array of strings. A continuous factor is denormalized from between -1 and 1, to between min and max.
Note
This is the inverse of
normalize.Parameters
- datafloat or int or np.array(1d) or pd.Series
The data to be normalized. A continuous factor requires a float, array of floats or a series of floats. A categorical factor requires an int or series of ints.
Returns
- denorm_datafloat or str or np.array(1d) or pd.Series
The denormalized data, in the same type as the data. Categorical inputs become strings.