Skip to content

Rebeca Muniz Cedar#96

Open
rebecamuniz wants to merge 2 commits intoAda-C16:masterfrom
rebecamuniz:master
Open

Rebeca Muniz Cedar#96
rebecamuniz wants to merge 2 commits intoAda-C16:masterfrom
rebecamuniz:master

Conversation

@rebecamuniz
Copy link

No description provided.

Copy link

@kaidamasaki kaidamasaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assignment is between "approaches expectations" (yellow) and "fails to meet expectations" (red).

This is only for completeness though, what you had looked good. 😃

It would be great if you could come back and do Wave 3 over break week. Does that seem manageable?

#function 2 - Function that finds the mode of the genre category.
def get_most_watched_genre(user_data):
genre_list = []
freq = {}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job building a frequency dictionary. 😄

genre_list.append(movie["genre"])
for elem in genre_list:
freq[elem] = genre_list.count(elem)
most_watched_genre = max(freq, key=freq.get)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know how this line works? If you're confused feel free to ask about it here. 😃

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.

2 participants

Comments