So I have a really crappy method and want to improve it and just generally move away from using iterrows, as I understand it's just bad practice.
I basically want to check whether a value in the 'Login Date' column falls with a range of datetime objects.
This is my crappy method atm.
for index, row in df.iterrows():
if semester_start <= datetime.strptime(row['Login Date'].split(' ')[0], "%Y/%m/%d") <= semester_end:
index_list.append(index)
filtered_df = df[df.index.isin(index_list)]