Hi, In this main.py we have created 4 methods under a class name "ipl_match"
- def table_data(self) -> This method consist of the Table data which is stored as an array using numpy modulue
- def table_output(self) -> This method is to display the table data in a Tabular Format using Tabulate modulue
- def consecutive_loss(self) -> This method is to display the Team name which has 2 consecutive loss
- def n_loss_win_points(self) -> This is a generalized method , that we could get teams that have n consecutive losses/wins & Calculate the average points of these filtered teams.
"s_obj" object was created for the class "ipl_match" using the above object , methods were called. Thank you.