jaysaville / sync-streamlit

Unnecessary use of comprehension PYL-R1721
Performance
Major
a year agoa year old
Unnecessary use of a comprehension, use list(index) instead.
123    #Timestamp buttons
124    sorted_df = df.sort_values(by=['Smoothed Sync Error'], ascending=False).round(2).head(5)
125    index = sorted_df.head(5).index
126    top5imp = [i for i in index]127    timestamps = sorted_df['Time'].to_list()
128    sync = sorted_df['Smoothed Sync Error'].to_list()
129