技术栈

isin

sichuanwww
2 年前
python·isin·min
DataFrame中的isin查询使用代码实例:1)包含df1=df[ df["学号"].isin(myNumber)]2)不包含df1=df[ ~df["学号"].isin(myNumber)]