primrose icon indicating copy to clipboard operation
primrose copied to clipboard

make TrainTestSplit pipeline compatible with np.array data type

Open kzecchini opened this issue 6 years ago • 1 comments

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.

kzecchini avatar Dec 12 '19 15:12 kzecchini

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.

kzecchini avatar Dec 12 '19 18:12 kzecchini