79782410

Date: 2025-10-04 10:08:20
Score: 1.5
Natty:
Report link

df2 = df.groupby('team1')['first_ings_score'].sum().sort_values(ascending=False).head(10)

# Adjust figure size for better readability

plt.figure(figsize=(12, 6))

plt.scatter(x = 'team1', y= 'first_ings_score')

plt.xlabel('Team')

plt.ylabel('Total First Innings Score')

plt.title('Top 10 Teams by Total First Innings Score')

# Rotate x-axis labels if they overlap

plt.xticks(rotation=45, ha='right')

# Adjust layout to prevent labels from being cut off

plt.tight_layout()

plt.show()

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Shivam