Not sure how to fix error 'missing 7 required positional arguments'
import pandas as pd
pd.options.display.max.rows = 9999
df = pd.read_csv('events.csv')
class Academic:
def __init__(self):
self.name = "Academic Category"
class pythonBasics:
def __init__(self, date, time, location, availableSpace, fee, organiser, description)
self.name = df.loc[2, 'EventName']
self.date = df.loc[2, 'Date']
self.time = df.loc[2, 'Time']
self.location = df.loc[2, 'Location']
self.availableSpace = df.loc[2, 'AvailableSpace']
self.fee = df.loc[2, 'Fee']
self.organiser = df.loc[2, 'Organiser']
self.description = df.loc[2, 'Description']
academic = Academic()
pythonbasics = academic.pythonBasics()
pythonbasics.display(name)
I am attempting to display the name of the pythonBasics class, which is nested within the Academic class, but every time I run the code I get the error 'missing 7 required positional arguments'. I am new to using pandas so I am not sure what my error is or how to fix it?