I am new to object-oriented programming I need to write a BankDataWriterBase base class in the following program using the class diagram given in below to the code. I cannot understand the complete thing that the class diagram has, anybody here to know & explain to me what they actually saying using the class diagram
import pandas as pd
class ExcelParser:
def __init__(self):
self.config = []
def extract(self, file_name):
raw_excel=pd.read_excel(file_name,sheet_name=None,na_values= None,keep_default_na=False)
return [x for k, v in raw_excel.items() for x in v[v.columns.intersection(self.config)].to_dict(orient='records')]
if __name__ == "__main__":
conf = list(input("ENTER THE LIST HERE : ").split(','))
file_name = input("enter the full path to the file : ")
obj = ExcelParser()
obj.config = conf
print(obj.extract(file_name))
here is the class diagram for the BankDataWriterBase class, i have completed the EXcelParser class but i dont know how to approach the BankDataWriterBase class
