skoot.utils.safe_vstack

skoot.utils.safe_vstack(a, b)[source][source]

Stack two arrays on top of one another.

Safely handle vertical stacking of arrays. This works for either np.ndarrays or pd.DataFrames. The types of both inputs must match!

Parameters:

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

The array that will be stacked on the top vertically.

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

The array that will be stacked below the other vertically.