

和apply類似的還有applymap和map,
apply() 和applymap()是DataFrame數(shù)據(jù)類型的函數(shù),map()是Series數(shù)據(jù)類型的函數(shù)。
apply()的操作對(duì)象DataFrame的一列或者一行數(shù)據(jù), applymap()是element-wise的,作用于每個(gè)DataFrame的每個(gè)數(shù)據(jù)。 map()也是element-wise的,對(duì)Series中的每個(gè)數(shù)據(jù)調(diào)用一次函數(shù)。?
* apply works on a row / column basis of a DataFrame, applymap works element-wise on a DataFrame, and map works element-wise on a Series.?
更多內(nèi)容:http://pandas.pydata.org/pandas-docs/stable/api.html#id5