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 + + + +