🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Write CSV only if dataset is not empty

User: "pablo_oda"
New Altair Community Member
Updated by Jocelyn
I am creating a couple of csv after some processing, ocassionally one or more of the datasets are empty (0 examples). Problem is they are still created as CSV that only shows the attributes and in that case, I rather skip the Write CSV operator.

I imagine I have to go with the branch operator, but I don't understand how to use it to check the numbers of example to use it as a condition.

Find more posts tagged with

Sort by:
1 - 3 of 31
    User: "kayman"
    New Altair Community Member
    Accepted Answer
    In the branch options you can select minimum examples with the drop down

    condition type -> min_examples 
    condition value -> 1

    So in this case your output has to have at least 1 example, otherwise it's empty
    User: "pablo_oda"
    New Altair Community Member
    OP
    Wow, I can't believe skipped that. As soon as I open Rapidminer I'll test it.
    User: "pablo_oda"
    New Altair Community Member
    OP
    It worked, I don't know how did I miss it. Thanks @kayman!