TroglodyteDerivations
commited on
Commit
•
15ac963
1
Parent(s):
8b6e2d8
Updated lines 209-220 with: # Aggregate the data to count the number of visits to each State_2D visitation_counts = df['State_2D'].value_counts().reset_index() visitation_counts.columns = ['State_2D', 'Visitation_Count'] # Create the Plotly bar chart fig = px.bar(visitation_counts, x='State_2D', y='Visitation_Count', title='Goal Position Visitation Counts', labels={'State_2D': 'State 2D', 'Visitation_Count': 'Visitation Count'}) # Display the plot using Streamlit st.title('Goal Position Visitation Counts Visualization') st.plotly_chart(fig)
Browse files
app.py
CHANGED
@@ -206,15 +206,14 @@ st.plotly_chart(fig_heatmap)
|
|
206 |
# Load the CSV data
|
207 |
df = pd.read_csv('goal_rows.csv')
|
208 |
|
209 |
-
#
|
210 |
-
|
211 |
-
|
212 |
-
visitation_counts = df['visitation_count']
|
213 |
|
214 |
# Create the Plotly bar chart
|
215 |
-
fig = px.bar(
|
216 |
title='Goal Position Visitation Counts',
|
217 |
-
labels={'
|
218 |
|
219 |
# Display the plot using Streamlit
|
220 |
st.title('Goal Position Visitation Counts Visualization')
|
|
|
206 |
# Load the CSV data
|
207 |
df = pd.read_csv('goal_rows.csv')
|
208 |
|
209 |
+
# Aggregate the data to count the number of visits to each State_2D
|
210 |
+
visitation_counts = df['State_2D'].value_counts().reset_index()
|
211 |
+
visitation_counts.columns = ['State_2D', 'Visitation_Count']
|
|
|
212 |
|
213 |
# Create the Plotly bar chart
|
214 |
+
fig = px.bar(visitation_counts, x='State_2D', y='Visitation_Count',
|
215 |
title='Goal Position Visitation Counts',
|
216 |
+
labels={'State_2D': 'State 2D', 'Visitation_Count': 'Visitation Count'})
|
217 |
|
218 |
# Display the plot using Streamlit
|
219 |
st.title('Goal Position Visitation Counts Visualization')
|