Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion q01_read_data/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ def read_data():
# You can use this path to access the CSV file: '../data/ipl_match.yaml'
# Write your code here

data =
fp = open('./data/ipl_match.yaml',mode ='r')

data=yaml.load(fp)

# return data variable
return data
4 changes: 4 additions & 0 deletions q02_teams/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ def teams(data=data):
# write your code here
#teams =

teamInfo= data['info']

teams=teamInfo['teams']

return teams
6 changes: 2 additions & 4 deletions q03_first_batsman/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
def first_batsman(data=data):

# Write your code here




name = data['innings'][0]['1st innings']['deliveries'][0][0.1]['batsman']

return name