I want to subset a dataframe for 30 days of participation from 45 subjects. The first 30days of data needs to meet specific criteria: (having done more than 3 days of surveys, and have more than 50% survey completion within the 30days).
there are 8 surveys done everyday that are labeled as: 'anxious','depressed','distressed','ext_mot','int_mot','sleep','stressed' , 'mood',
983 rows × 11 columns
df = pd.DataFrame
rows= (2,4.0,1.0,5.0,2.0,1.0,2.0,0.0,3.0m,U0672651608,MDD)
columns=['day','anxious','depressed','distressed','ext_mot','int_mot','sleep','stressed' , 'mood', 'participant', 'group']
I've tried to subset for days/participants but cannot use str?