Note: This post is about an unrelated dataset but contains spoilers for the movie, “A Star is Born”.
When the movie “A Star is Born” came out I looked forward to watching cause I could be a hopeless romantic sometimes. I could tell it was a sad ending even though I didn’t know what it would be. I hadn’t seen previous makes of the movie, and I thought the tragedy would be that he died of a disease or major accident.
It hurt that he killed himself even though it was fiction. It made me think a lot about suicide and how painful it is for loved ones. And from the top of my head I just said to my mom, guys are more suicidal than girls. Took my phone and searched for articles on it and it seems I was right. I noted I’d like to see some data but I just got to actually getting data and doing some work on it when I was thinking of an idea for a new post. I looked for a dataset on kaggle and I found this.
Today, I’m working on data visualization with this dataset on suicide rates. I would be visualizing what gender is affected the most, age range and whatever comes to mind
Data visualization with Python…
First, I imported the libraries I’d be needing
In my last post, I noted the error with reading my file and why I had to use “r” before the filepath. Turns out it’s an issue with forward and back slash (/ \). Paths should be written in forward slash (/) when trying to read it in. However, when I copy my file path on my system, it comes in back slash (\) and I’d rather put “r” before the path than change the slashes. That’s my preference, I think it’s faster that way.
I looked at the top 5 and last 5 rows of the database so I have an idea what it’s about. The only column I don’t get is the “HDI for year” but I’m moving on and ignoring it ๐.
Yeah, this is an interesting database for me unlike the one in my previous post. I ran “.info()” to check out the various datatypes and looks like there’s a lot to play around.
Then I wanted to see the unique countries to see if Nigeria was included but I came across my first problem.
I tried this other way by assigning it to a variable and print but had the same result.
Ok, so I just decided to visualize it and I saw that Nigeria wasn’t part of the countries they had data from.
Anyway, I’m not really about the country, I’m more focused on the gender that’s affected most.
When you are working with numbers (datatypes: int and float), you can run .describe to get the following below ๐
Then I went ahead to see graphical representations ๐
We see that across the different generations, we see that male suicides are more than female. We also see that in a span of 30 years, never have they recorded female suicide above male. Infact, male suicides are more than two times that of females. It breaks my heart that guys feel the need to have the weight of the world on their shoulders. Maybe it’s time for men to revisit “gender roles” and embrace equality. At the end of the day, feminism is not a war against men, it’s the empowerment of women. This movement if embraced by all would help both genders in my opinion.
Let’s do what we can to make sure suicide isn’t an option for our fellow humans. Do you have a thought on why suicide is more amongst men? Please share your thoughts and solutions. Thank you