I have a list like this:
network = ['facebook','organic',instagram']
And I create 3 dataframes: facebook_count, organic_count, instagram_count that each type of network.
facebook_count = df[df.isin(['facebook installs'])]
organic_count = df[df.isin(['organic installs'])]
instagram_count = df[df.isin(['instagram installs'])]
so is there a way that write a iteration that create these 3 dataframes at once? I write something like this:
for i in range(len(network)+1):
network[i]+'_count' = df[df.isin([network[i]+' installs'])]
But it returns a SyntaxError: can't assign to operator