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
25 changes: 18 additions & 7 deletions q01_read_data/build.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
import yaml

def read_data():
with open('data/ipl_match.yaml','r') as f:
data = yaml.load(f)
return data
















# import the csv file into `data` variable
# You can use this path to access the CSV file: '../data/ipl_match.yaml'
# Write your code here

data =

# return data variable
return data
12 changes: 3 additions & 9 deletions q02_teams/build.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
# default imports
from greyatomlib.python_getting_started.q01_read_data.build import read_data
data = read_data()
def teams(matchDetails):
return matchDetails ['info']['teams']

# solution
def teams(data=data):

# write your code here
#teams =

return teams