pandas中apply方法

當想要進行的操做,在pandas當中,沒有相應直接可用的函數的時候,能夠使用apply方法 # apply的參數是函數名 # 如下定義幾個簡單的函數,演示apply def f1(x): return x + 100 # x到底是什麼? # print x # print type(x) # exit() # x就是['收盤價']這個series
相關文章
相關標籤/搜索