The Analytic Edge Lecture code in Python Week6 Netflix

Video 6

After following the steps in the video, load the data into R

Add column names

Remove unnecessary variables

Remove duplicates and then take a look at our data again:

There is a drop_duplicates function in pandas. The unique function in pandas is for Series rahter than DataFrame

Video 7

Compute distances

Hierarchical clustering

Plot the dendrogram