I have a function that is essentially something like this
def Yes_No(factor):
    factor_yes = ####  --> Dataframe
    factor_no = ####   --> Dataframe
return (factor_yes, factor_no)
If factor = 'Male', and I want to view the dataframe Male_yes, how can I do this? I have multiple factors I want to analyse, it's just I don't know how to name the output in a way that I can call each of the dataframes individually. Or should I just create 2 functions?
'factor' here is some feature from my main dataframe. Each feature is a column of Yes and No. So I want to output 1 dataframe that is filtered by Yes and another dataframe that is filtered by No.