Question: Can you tell me whats wrong in my conditional statement. Antecedents and consequents are given below just posted one value each sorted _ rules =

Can you tell me whats wrong in my conditional statement. Antecedents and consequents are given below just posted one value each
sorted_rules = filtered_rules.sort_values(by='lift',ascending=False)
display(sorted_rules)
if sorted_rules.antecedents == sorted_rules.consequents:
print(sorted_rules.antecedents)
antecedents consequents
(Department_Research & Development, MaritalSta... (BusinessTravel_Travel_Rarely)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!