Good morning to all
Allthough it seems that most of the people have problems with multiindexing, my problem is that I can not understand the use of the apply function. What do aff,gc and price variables represent and what does aplly function do in this case?
“”“For each segment in
labels the apps that cost less than its segment’s mean with
and the others with
aff = row["affordability"] gc = row["genre_count"] price = row["Price"] if price < genres_mean.loc[(aff, gc)]: return 1 else: return 0
affordable_apps[“genre_criterion”] = affordable_apps.apply(
Thank you in advance