Skip to content

Conversation

AmineBellahsen
Copy link

@AmineBellahsen AmineBellahsen commented Dec 6, 2020

Hello,

The list of items should be sorted alphabetically before applying the Counter function.

Otherwise for instance, you'll find that ('Lightning Charging Cable', 'iPhone') are sold together 1005 times and ('iPhone', 'Lightning Charging Cable') are sold together 10 times, while the wanted result would be ('Lightning Charging Cable', 'iPhone') sold 1015 times.

Thank you for your awesome work!

Amine B.

The list of items should be sorted alphabetically before applying the Counter function.
Otherwise, you'll find that ('Lightning Charging Cable', 'iPhone') are sold together 1005 times and ('iPhone','Lightning Charging Cable') are sold together 10 times, while the wanted result would be ('Lightning Charging Cable', 'iPhone') sold 1015 times.
@AmineBellahsen AmineBellahsen changed the title Correcting the Question 4. Corrected the Question 4. Dec 6, 2020
keivanipchihagh added a commit to keivanipchihagh/Pandas-Data-Science-Tasks that referenced this pull request Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant