Spaces:
Sleeping
Sleeping
Update pages/1player_information.py
Browse files
pages/1player_information.py
CHANGED
@@ -48,13 +48,14 @@ if player_input:
|
|
48 |
ax.set_ylabel("Runs Scored", fontsize=12)
|
49 |
ax.set_title(f"Runs Scored by {selected_player}", fontsize=14)
|
50 |
st.pyplot(fig)
|
51 |
-
|
52 |
-
# Scatter Plot - Matches vs Runs (ODIs)
|
53 |
fig, ax = plt.subplots()
|
54 |
-
sns.scatterplot(x=
|
|
|
|
|
55 |
ax.set_xlabel("Matches Played", fontsize=12)
|
56 |
ax.set_ylabel("Runs Scored", fontsize=12)
|
57 |
-
ax.set_title("Matches vs Runs in ODIs
|
58 |
st.pyplot(fig)
|
59 |
|
60 |
# Line Chart - Batting Average Over Formats
|
|
|
48 |
ax.set_ylabel("Runs Scored", fontsize=12)
|
49 |
ax.set_title(f"Runs Scored by {selected_player}", fontsize=14)
|
50 |
st.pyplot(fig)
|
51 |
+
# Scatter Plot - Matches vs Runs
|
|
|
52 |
fig, ax = plt.subplots()
|
53 |
+
sns.scatterplot(x=[player_data["Matches_ODI"]],
|
54 |
+
y=[player_data["batting_Runs_ODI"]],
|
55 |
+
color="#4682B4", edgecolor='black', s=200)
|
56 |
ax.set_xlabel("Matches Played", fontsize=12)
|
57 |
ax.set_ylabel("Runs Scored", fontsize=12)
|
58 |
+
ax.set_title(f"Matches vs Runs in ODIs - {selected_player}", fontsize=14)
|
59 |
st.pyplot(fig)
|
60 |
|
61 |
# Line Chart - Batting Average Over Formats
|