Skip to content

Commit

Permalink
Fix match number labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
justinb4003 committed Mar 19, 2024
1 parent 3876612 commit 3b755bc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions data-streamlit/pages/team_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,29 @@
# Gets a list of every column name in the dataframe
allcols = tdf.columns
# Now we can create new dataframes where we only see the auto columns
auton_cols = [c for c in allcols if c.startswith("auto")]
auton_cols = [c for c in allcols if c.startswith("auto") or c == 'match_key']
auton_df = tdf[auton_cols]
# And then teleop...
teleop_cols = [c for c in allcols if c.startswith("tele")]
teleop_cols = [c for c in allcols if c.startswith("tele") or c == 'match_key']
teleop_df = tdf[teleop_cols]
# And endgame.
endgame_cols = [c for c in allcols if c.startswith("endgame")]
endgame_cols = [c for c in allcols if c.startswith("endgame") or c == 'match_key']
endgame_df = tdf[endgame_cols]
# And our computed ones
comp_cols = [c for c in allcols if c.startswith("comp")]
comp_df = tdf[comp_cols]
# comp_cols = [c for c in allcols if c.startswith("comp")]
# comp_df = tdf[comp_cols]

# st.subheader("Computed")
# st.bar_chart(comp_df)

st.subheader("Auton")
st.bar_chart(auton_df)
st.bar_chart(auton_df, x='match_key')

st.subheader("Teleop")
st.bar_chart(teleop_df)
st.bar_chart(teleop_df, x='match_key')

st.subheader("Endgame")
st.bar_chart(endgame_df)
st.bar_chart(endgame_df, x='match_key')

# Show the pit scouting data
st.header("Pit Scouting")
Expand Down

0 comments on commit 3b755bc

Please sign in to comment.