From 00341c4755fd9a0bbd253d9c804acb012d8a1bf3 Mon Sep 17 00:00:00 2001 From: harshitshah99 Date: Sun, 9 Sep 2018 11:13:29 +0000 Subject: [PATCH] Done --- q01_read_data/build.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/q01_read_data/build.py b/q01_read_data/build.py index e13d2f74..07be3577 100644 --- a/q01_read_data/build.py +++ b/q01_read_data/build.py @@ -1,12 +1,16 @@ +# %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) - # 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 + + + +