Skip to content

Miquelpg6/SHARKS_PROJECT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project-1-Pandas Overview This aim of this project is to clean and format a dataset containing information about shark attacks, and use the data to produce visualizations that will either prove or disprove my hypotheses.

Requirements/Libraries Used: This code was written in Python/Jupyter Notebook, using the following libraries:

Numpy Pandas matplotlib.pyplot Seaborn

Hypotheses/Analysis:1-

1-South Africa is a save country to practice water sports. 2- Summer is the best season to go to South Africa. 3- Analyze each region most dangerous activity and when are shark attacks happening for each activity.

1 - South Africa is a save country to practice water sports:

The initial portion of the investigation has been devoted to identifying the most dangerous nations on the planet, i.e., those with a higher rate of attacks throughout time. According to the study, USA has the highest number of attacks, with 2.229 reports. Australia is second with 1.338 attacks, and South Africa is third with 579. As we were planning to travel to South Africa this summer, we will take a closer look at the most dangerous regions in the country.

image

image

2- Worst season to go to South Africa?:

We would like to travel there in South African summer (December, January and February). We are hoping that the attacks are produced in the winter, as we know sharks like the cold water. Surprisingly, as we can see on the plot below, South African summer months have the higher number of attacks registered, January with 106 attacks registered, December with 68 and February with 56. After seeing that summer is the most dangerous season in South Africa, we would like to analyze deeply every region of South Africa and which activities are the most dangerous.

image

3- Analysis of each region most dangerous activity and when is happening

In the third part of the analysis, we will focus on each region of South Africa. We have found that there are 3 major regions where shark attacks happen, Eastern Cape Province, Western Cape Province, KwaZulu-Natal. Eastern Cape has had during its history a total of 160 reported shark attacks, that a 28.2 % of the three most reported regions in South Africa. Western Cape has reported a total of 195 shark attacks in the second position. And the most dangerous area in South Africa is KwaZulu-Natal with a total of 213 reported shark attacks.

Knowing that these regions have a high number of attacks, we want to know for each region which is the most common activity for each region when attacks happen and in which month are most likely to happen:

  • Eastern Cape Province: After the analysis we have found that the activity with a higher number of attacks in Eastern Cape Province is surfing with 58 registered attacks. In this region we should take care doing this activity in the months of July with 14 attack, May with 8 attack and February with 6 attacks.

image

image

  • Western Cape Province: The activity with higher reported attack numbers is spearfishing with 27 reported shark attacks. If we want to do this activity safely we should take care in the months of September with 4 attack reports, December with also 4 and February with a total of 3 attacks.

image

image

  • KwaZulu-Natal: For the region of KwaZulu-Natal, we have found that the most dangerous activity is swimming, with a total of 34 reported shark attacks in the history of the region. If we want to go for a swim in this region we should take care in months like January with 9 attacks reports, November with 5 reports and February with also 5 reports.

image

image

In conclusion, if we want to travel to South Africa we should know that it is a dangerous country, ranked 3rd on most shark attacks. If you still want to travel there, keep in mind to NEVER do it in the summer, as we have seen that is the most dangerous season. If you do it, try not to practice Surf in Eastern Cape, Spearfishing in Western Cape and Swimming in KwaZulu-Natal.

About

Primer proyecto

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors