IIUC:
In [227]: df.applymap(len).idxmax(axis=1)Out[227]:0 positive1 negative2 negativedtype: object
上一篇 python if循环if语句
下一篇 从python内部执行命令行程序
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号