我们想要“user_geohash”列中所有含有字母‘qo’的行
print(df.loc[df['user_geohash'].str.contains('qo')])
是不是已经想到了 利用loc就可以了,只要后面加上字符串str.contains()函数即可。
我们想要“user_geohash”列中所有含有字母‘qo’的行
print(df.loc[df['user_geohash'].str.contains('qo')])
是不是已经想到了 利用loc就可以了,只要后面加上字符串str.contains()函数即可。