Registrations Closing Soon for DevOps Certification Training by CloudxLab | Registrations Closing in

  Enroll Now

Scala Project - Churn Emails - Count Number of Messages From Each Email Address

Write a function count_message_from_email which reads the file /cxldata/datasets/project/mbox-short.txt.

This function counts how many messages have come from each email address, stores the count in a Map, and then returns the Map. The email can be found by second word after you split every line that starts with 'From:'

Note: If your logic is correct then your function should return a Map like the following:

Map( -> 4, -> 2, -> 2, -> 3, -> 1, -> 3, -> 4, -> 1, -> 1, -> 1, -> 5)

No hints are availble for this assesment

Answer is not availble for this assesment

Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...