摘要: In [2]: dfOut[2]: A B0 p1 11 p1 22 p3 33 p2 4 In [3]: df.loc[df['B'] == 3, 'A']Out[3]:2 p3Name: A, dtype: object In [4]: df.loc[df['B'] == 3, 'A'].ilo 阅读全文
posted @ 2023-10-16 21:31 Oops!# 阅读(32) 评论(0) 推荐(0) 编辑