1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Writing Efficient Code with pandas

Connected

अभ्यास

pandas vectorization in action

In this exercise, you will apply vectorization over pandas series to:

  • calculate the mean rank of all the cards in each hand (row)
  • calculate the mean rank of each of the 5 cards in each hand (column)

You will use the poker_hands dataset once again to compare both methods' efficiency.

निर्देश

100 XP
  • Calculate the mean rank in each hand.
  • Calculate the mean rank of each of the 5 card in all hands.