Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit Live PR #296

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
9 changes: 7 additions & 2 deletions q01_read_data/build.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# %load q01_read_data/build.py
import yaml

def read_data():
with open('./data/ipl_match.yaml') as f:

# import the csv file into `data` variable
# import the csv file into variable
# You can use this path to access the CSV file: '../data/ipl_match.yaml'
# Write your code here

data =
data = yaml.load(f)

# return data variable
return data



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


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

# write your code here
#teams =

return teams



6 changes: 5 additions & 1 deletion q03_first_batsman/build.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# %load q03_first_batsman/build.py
# Default Imports
from greyatomlib.python_getting_started.q01_read_data.build import read_data
data = read_data()
Expand All @@ -7,7 +8,10 @@ def first_batsman(data=data):

# Write your code here


name = data['innings'][0]['1st innings']['deliveries'][0][0.1]['batsman']


return name