You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
deftest_group_by_columns_single_column() ->None:
"""Test to check if the group by columns is correctly applied."""dataset=input_data()
data_container=DataContainer({"is_train": True})
data_container.flow=datasetsplit_step=TabularSplitStep(train_percentage=0.7, group_by_columns=["category_low"])
result=split_step.execute(data_container)
assertisinstance(result, DataContainer)
assertresult.train.shape== (5, 7)
assertresult.validation.shape== (3, 7)
assertlen(result.train["category_low"].unique()) ==1assertlen(result.validation["category_low"].unique()) ==1
The text was updated successfully, but these errors were encountered:
This test is not working
The text was updated successfully, but these errors were encountered: