# Your Class class YourClass: def increase(self,value) # Do Something return value + 1 increaser = Yourclass() df['your column'] = df['new_column'].apply(lambda x: increaser.increase(x))