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