发布网友 发布时间:2022-04-23 17:46
共1个回答
热心网友 时间:2023-10-11 15:12
apply()
和applymap()是DataFrame数据类型的函数,map()是Series数据类型的函数。
apply()的操作对象DataFrame的一列或者一行数据,
applymap()是element-wise的,作用于每个DataFrame的每个数据。
map()也是element-wise的,对Series中的每个数据调用一次函数。
* 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.