# Default imports
import numpy as np

ipl_matches_array =np.genfromtxt("data/ipl_matches_small.csv", dtype="|S50", skip_header=1, delimiter=",")

def get_total_deliveries_played(batsman):
    batsman_delivery_list = ipl_matches_array[:,13]
    batsman_filter = batsman_delivery_list == batsman
    return batsman_delivery_list[batsman_filter].size
#get_total_deliveries_played('SR Tendulkar')
