skoot.utils.safe_drop_samples

skoot.utils.safe_drop_samples(X, drop_samples)[source][source]

Drop samples (rows) from a matrix.

Drop observations from a np.ndarray or pd.DataFrame. This produces a copy of data without the samples.

Parameters:

X : array-like, shape=(n_samples, n_features)

The array from which to drop records.

drop_samples : array-like, shape=(n_samples,)

The indices to drop.