I have a dataframe which contains details of certain courses. In that I have a column time_period which is the duration if course and a 'type' column which is the type of course.
I am iterating over that column by -
for year in df_course['time_period']:
Now I have to see if there is row where 'year' == 6 and the type of course is 'Post Graduate' i.e.
for year in df_course['time_period']:
if year == 6 and df_course['type'] == 'Post Graduate':
#do something
But I am not able to access the row value of 'type' column inside the 'time_period' loop column. How to proceed?