text_plain_output_1.png image_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import numpy as np
import pandas as pd
import seaborn as sns
Deliveries_Data = pd.read_csv('../input/deliveries_expanded.csv')
Matches_Data = pd.read_csv('../input/matches_expanded.csv')

Deliveries_Data.head(2)
Deliveries_Powerplay = Deliveries_Data.loc[Deliveries_Data['over'] < 7]
Deliveries_team_analysed = Deliveries_Powerplay.groupby(['batting_team', 'over'])['total_runs'].sum().unstack().plot(kind='bar', figsize=(15, 5))
Deliveries_team_analysed.get_legend().set_bbox_to_anchor((0.18, 1))