From c5efa8a68a79af9df6563910219634a85d8b864e Mon Sep 17 00:00:00 2001 From: shannoncoutinho Date: Sat, 29 Sep 2018 06:27:22 +0000 Subject: [PATCH] Done --- q01_read_data/build.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/q01_read_data/build.py b/q01_read_data/build.py index e13d2f74..9a397335 100644 --- a/q01_read_data/build.py +++ b/q01_read_data/build.py @@ -1,12 +1,19 @@ +# %load q01_read_data/build.py + import yaml def read_data(): + file = './data/ipl_match.yaml' + with open(file) 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