refer to:
http://dougaoyang.github.io/2017/09/22/pandas-bool-compare.html
df[(df['pop']>3) and (df['pop']<4)]
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
需要用 &
refer to:
http://dougaoyang.github.io/2017/09/22/pandas-bool-compare.html
df[(df['pop']>3) and (df['pop']<4)]
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
需要用 &