This topic created in 2263 days ago, the information mentioned may be changed or developed.
def func(x):
#想获得 index 的值
df.apply(func,axis=1)
每一行调用函数时,想知道 index 值,哪位大侠帮忙解答下,查了很多,没有解决办法。
自己想到的最傻办法就是 df 增加一列 index 一样的值
1 replies • 2020-02-25 23:16:40 +08:00