Since you're also a data science enthusiast, you want this to be a data-driven decision. Clearly what you need to find is whether teams make better runs in the first inning or the second one. Maybe plotting distribution of runs (per inning per match) would help?
You need to plot a histogram to find the distribution of runs in 1st and 2nd innings. Write a function plot_innings_runs_histogram()
which creates a figure with 2 subplots (shape: 1 row, 2 cols), and plots into them the histograms of runs made the first and second innings in each match respectively
This function takes in no parameters
This function returns nothing
Remember, what we want is th sum of runs (aggregation), per match (grouping). You will need to first create a dataframe as required and the plot the same. Look for a suitable pandas function that can be used for such operation.