pandas.apply實測使用方法

apply能夠把dataframe的一列或幾列遍歷計算python 針對Series(一列)app   針對Dataframe(多列)code 一個參數class     def plus(df,n): df['c'] = (df['a']+df['b']) df['d'] = (df['a']+df['b']) * n return df list1 = [[1,3],[
相關文章
相關標籤/搜索