primrose
primrose copied to clipboard
make TrainTestSplit pipeline compatible with np.array data type
Right now in the method features, there is a call to the columns attribute. This pipeline should also work with any np.array object. The fix would be to check if the dtype is pd.DataFrame, and if so then check columns. Otherwise just return the data object.
I noticed that _concatenate_upstream_dataframes method also assumes that the input datatype is a dataframe. This may take a bit more work to fix due to modifications in both of these methods.