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
14 changes: 8 additions & 6 deletions q01_read_data/build.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# %load q01_read_data/build.py
import yaml

def read_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 =
file = './data/ipl_match.yaml'
with open(file) as f:
data = yaml.load(f)

# return data variable
return data




9 changes: 5 additions & 4 deletions q02_teams/build.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# default imports
#%load q02_teams/build.py
#default import
from greyatomlib.python_getting_started.q01_read_data.build import read_data
data = read_data()

# solution
def teams(data=data):
teams = data['info']['teams']
return teams
print('teams')

# write your code here
#teams =

return teams