I wanted to select only those row which fulfill my condition.
options = ['apple', 'banana','cat','dog']
#selecting rows based on condition
rslt_df = data[(data['Animal'] == "All") & data['Category'].isin(options)]
print(rslt_df)
But I am getting this error.
#selecting rows based on condition
-----> rslt_df = data[(data['Animal'] == "All") & data['Category'].isin(options)]
print(rslt_df)
TypeError: invalid type comparison