miceforest.ampute_data
- miceforest.ampute_data(data, variables=None, perc=0.1, random_state=None)[source]
Ampute Data
Returns a copy of data with specified variables amputed.
- Parameters
data (Pandas DataFrame) – The data to ampute
variables (None or list) – If None, are variables are amputed.
perc (double) – The percentage of the data to ampute.
- random_state: None, int, or np.random.RandomState
The random state to use.
- Returns
The amputed data
- Return type
pandas DataFrame