the truth value of a series is ambiguous. use a.empty, a.bool(), a.item(), a.any() or a.all().
democratizing data science, machine learning, & ai education. course & book reviews, tutorials, and projects.
ADS