Skip to content

Commit

Permalink
debut data story
Browse files Browse the repository at this point in the history
  • Loading branch information
ecornamu committed Dec 10, 2024
1 parent df00db2 commit fadae99
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 61 deletions.
7 changes: 2 additions & 5 deletions docs/_includes/rachel.html
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,10 @@ <h3>The Rachel</h3>
<h3>Influence</h3>
<ul>
<li>
It was the most popular hairstyle in the United States in 1995.
Was the most popular hairstyle in the United States in 1995.
</li>
<li>
Its populatiry varied, but gain some traction in 2020 during the pandemic.
</li>
<li>
It was the most popular hairstyle in the United States in 1995.
Became popular again during the 2020 pandemic lockdown.
</li>
</ul>
</section>
Expand Down
14 changes: 14 additions & 0 deletions docs/_includes/top10_genres.html

Large diffs are not rendered by default.

34 changes: 29 additions & 5 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,43 @@ cover-img: 'assets/img/w1z5c.jpeg'
}
</style>

# From your TV to your everyday life
One thing that TV Shows and movies are really good at is influencing their public. From political messages to new slang expressions, there are numerous example of actors or celebrities redifining how people behave, how they dress or even how they think. One of the most famous TV Show, *Friends*, is a good illustration of this phenomenom with "The Rachel", a hairstyle introduced by Jennifer Aniston that has become one of the the most requested haircut ever.
# From the *big screen* to your everyday life
Movies and TV shows have always been a major influence in our daily. From political messages to new slang expressions, there are numerous examples of actors or celebrities redefining how people behave, how they dress or even how they think.

For example, the famous sitcom *Friends* created "The Rachel" phenomenon. In this show, the character played by Jenifer Aniston wore an original haircut that became one of the most requested ever.

{% include rachel.html %}

A single person's appearance managed to influence the tastes of thousands of people. This is what intrigued us for our project and lead us to its subject.
In this article, we will see how the character names in movies induce trends on baby names, particularly the few years following the movie release.

# Try it yourself !
Before diving in deeper, let's give you a taste of our results. Enter any name, and see what movie potentially impacted its popularity.
{% include names_prediction.html %}

# Our *datasets* :
## The film corpus
First and most important, movies are what inspire people. They tell stories and affect our culture and lifestyle. For example, had you heard of macaws before [Rio](https://en.wikipedia.org/wiki/Rio_(2011_film)) ?

Our dataset contains movies released up to 2014 and informations such as their **unique ID**, **release date**, **genre** and the list of **characters** featured in the work.

In addition to that, we augmented it with [IMDB](https://www.imdb.com) **average rating** and **number of voters** coming from the [IMDB data files](https://datasets.imdbws.com).
### What makes a movie popular ?
Obviously, a blockbuster is more prone to impacting baby name trends than an obscure short film from the 40s. As such, we used the average IMDB rating of a movie as its popularity, excluding movies with few votes.
### Genre representation
{% include top10_genres.html %}
**NB:** We grouped all genres that represent <1% of the dataset in "Other"



## The baby names collection
Even if it remains a simple word, your name is what you are referred as for your entire life. It represents your whole identity


A single person's appearance managed to influence the look of thousands of people, and this is what intrigued us for our project, but with a little twist.
In this article, we will see how the names given to caracters in movies have an influence on the one that are actually given to newborns!


# The influence of movies over your name
Your name is the word that is used to identify your person among others and has such
{% include names_prediction.html %}
## Following part
<div class="two-col">
<div>
Expand Down
173 changes: 122 additions & 51 deletions results.ipynb

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions src/utils/plotly_manipulation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from plotly.graph_objs import Figure

def plotly_to_html(fig:Figure, filename="out"):
"""
Save a Plotly figure as an HTML file.
Parameters
----------
fig : plotly.graph_objs.Figure
The Plotly figure to save.
filename : str
The name of the file to save the figure to.
"""
fig.write_html(file = f"{filename}.html", full_html=True)

0 comments on commit fadae99

Please sign in to comment.