Hi! So glad to find a tidyverse equivalent in python. I encountered the following issue:
data = pd.concat([df_human, df_sim]) >>
group_by(_.subj, _.trial, .split, .agent,.inequality) >>
summarize(reward = np.sqrt(np.mean(.reward)))
Note I wanted the square root of the mean of the variable named reward. but this gives me an error: invalid array_struct . This error doesn't show up for other np functions such as np.size, np.mean, np.std. So I'm really confused...
Hi! So glad to find a tidyverse equivalent in python. I encountered the following issue:
data = pd.concat([df_human, df_sim]) >>
group_by(_.subj, _.trial, .split, .agent,.inequality) >>
summarize(reward = np.sqrt(np.mean(.reward)))
Note I wanted the square root of the mean of the variable named reward. but this gives me an error: invalid array_struct . This error doesn't show up for other np functions such as np.size, np.mean, np.std. So I'm really confused...