hierarch.stats.preprocess_data¶
- hierarch.stats.preprocess_data(data)¶
Performs label encoding without overwriting numerical variables.
- Parameters
- data2D array or pandas DataFrame
Data to be encoded.
- Returns
- 2D array of float64s
An array identical to data, but all elements that cannot be cast to np.float64s replaced with integer values.