📌  相关文章
📜  如何将类方法应用于pandas python代码示例

📅  最后修改于: 2022-03-11 14:46:51.544000             🧑  作者: Mango

代码示例1
# 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))