So you mean something like this, but with a dataframe
class student: def __init__(self, name): self.name = name def introduction(self): print('Hi, I\'m %s' %self.name) nameList = ['Mark', 'Mary', 'Luke', 'Sally', 'Lerry'] studentList = [] for student in nameList: studentList.append(student(student)) for student in studentList: student.introduction()