Deprecated in NumPy 1.20; for more details and guidance:

Deprecated in NumPy 1.20; for more details and guidance:,第1张

关于 Numpy 1.2 int类型需要明确是32位还是64位。

print(row.isin(row.nlargest(top_n)).astype(np.int))
如:np.int 会报错,需要改成np.int32或者np.int64,才不会报错。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/873521.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-13
下一篇2022-05-13

发表评论

登录后才能评论

评论列表(0条)

    保存