jaysaville / sync-streamlit

Implicit enumerate calls found PTC-W0060
Anti-pattern
Major
a year agoa year old
Consider replacing range(len(index)) with enumerate(index)
128    sync = sorted_df['Smoothed Sync Error'].to_list()
129
130    with st.expander("**Your top five areas for improvement:**"):
131        for i in range(len(index)):132            st.write(f"**Frame {index[i]}**")
133            st.write(f'Timestamp: {timestamps[i]}s, Absolute Sync Error: {sync[i]}')
134            st.image(f"https://storage.googleapis.com/sync_testinput/screencaps/{response['my_uuid']}/frame{top5imp[i]}.jpg")