An open API service indexing awesome lists of open source software.

https://github.com/kathrin-92/analysing_netflix_data

A fun project analysing my personal Netflix data with python and to work on some data visualization skills.
https://github.com/kathrin-92/analysing_netflix_data

data-science data-visualization python

Last synced: 3 months ago
JSON representation

A fun project analysing my personal Netflix data with python and to work on some data visualization skills.

Awesome Lists containing this project

README

          

# Project: Netflix Data Analysis and Visualization with Python

![MyNetflixDashboard](https://user-images.githubusercontent.com/71875232/153602449-25155e7e-d225-4802-a351-3336cbed5793.png)

## Table of Contents
1. [General Info](#General-Info)
2. [Installation](#Installation)
3. [Demo](#Demo)
4. [Usage and Main Functionalities](#Usage-and-Main-Functionalities)
5. [Contributing](#Contributing)

## General Info
This is a compact Data Visualization project I worked on for fun and to deepen my knowledge about visualizations and graphs using python libraries.

From conception and design to every line of code, the entire Dashboard was worked on by myself.
During this project, I was able to repeat and deepen what I had previously learned in my Data Science course of study.
Especially, I was able to familiarize myself with pandas and work on my data visualization skills, which I greatly enjoied!

The dataset I used for the Netflix data analytics task consists of my personal Netflix data, which I requested through their website. You can get access to your own data through this [link](https://www.netflix.com/account/getmyinfo). Feel free to download it and use my code to look into your own viewing behaviour :)

## Installation

**Requirements:**
Make sure you have Python 3.7+ installed on your computer. You can download the latest version of Python [here](https://www.python.org/downloads/).

**Req. Packages:**
* pandas
* dash
* dash_bootstrap_components
* ploty.express
* plotly.graph_objects

## Demo

https://user-images.githubusercontent.com/71875232/153603229-acc3cb9f-ed70-4551-b808-0db1c5a05f68.mov

## Usage and Main Functionalities

*Want to know more about your own Netflix behaviour? For test usage you can download your own Netflix data. Just follow this [link](https://www.netflix.com/account/getmyinfo) and Netflix will send you your personal data.*

*Please also refer to the comments within the code itself to get more information on the functionalities of the program.*

---
#### 0. Preparing the data for analysis
* This part cleans up the original data and prepares it for analysis.
* In the process, columns that are not needed are dropped.
* Time data is converted into appropriate time formats and split into several columns. The days of the week are added.
* In addition, the titles of the movies/series are split (title, season number, episode name).

#### 1. Analysis
* This part of the code is about analyzing the data.
* We find out how many movies or series were watched over the entire period. We also count the total number of hours Netflix was watched.
* A pie chart is created that shows which days of the week are watched.
* In addition, the top 10 series that were watched the longest (in terms of total duration) are displayed.
* A line chart shows Netflix viewing behavior over the years, counting the total number of hours Netflix was watched.

![NetflixOverTime](https://user-images.githubusercontent.com/71875232/153602731-3e378e2c-aef9-42f8-87b1-28bbbfd17406.png)

#### 2. Dash App Layout
* plotly's Dash is now used to create an Interactive Dashboard of Netflix data.
* The individual graphics and texts are arranged in rows and containers.
* This part also includes a dropdown menu that the user can interact with.

#### 3. App Callback
* Here we connect an interactive bar chart to the Dash Components.
* The chart represents our total annual hours of Netflix watched, grouped by month. The chart is filterable by year.

![MonthlyViews](https://user-images.githubusercontent.com/71875232/153602668-b91f844f-7a03-46a9-a1da-c7a850433b98.png)

## Contributing
Your comments, suggestions, and contributions are welcome.
Please feel free to contribute pull requests or create issues for bugs and feature requests.