Import participants' wristband info.

rapids
junos 2021-12-01 11:55:58 +01:00
parent 578f5ed5f3
commit cf3801b120
1 changed files with 14 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import datetime import datetime
import pandas as pd
import participants.query_db import participants.query_db
@ -11,4 +12,16 @@ participants_inactive_usernames = participants.query_db.get_usernames(
last_upload=datetime.date.fromisoformat("2021-09-01"), last_upload=datetime.date.fromisoformat("2021-09-01"),
) )
print(participants_inactive_usernames.__len__()) participants_overview_si = pd.read_csv(
"E:/STRAWbaseline/Participants_overview_Slovenia.csv", sep=";"
)
participants_overview_be = pd.read_csv(
"E:/STRAWbaseline/Participants_overview_Belgium.csv", sep=";"
)
participants_true_si = participants_overview_si[
participants_overview_si["Wristband_SerialNo"] != "DECLINED"
]
participants_true_be = participants_overview_be[
participants_overview_be["SmartphoneBrand+Generation"].str.slice(0, 3) != "Not"
]