cf1p2['Age Check'] = (cf1p2['Age']>18 & cf1p2['Age']<60)
I want to check if cf1p2['Age'] is between 18 and 60 and need a result in cf1p2['Age Check'] column
The current code is giving the following error.
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().