Skip to content

nessayoub/Sea-Level-Predictor-

Repository files navigation

Assignment

I will anaylize a dataset of the global average sea level change since 1880. I will use the data to predict the sea level change through year 2050.

I Used the data to complete the following tasks: *Pandas to import the data from epa-sea-level.csv.

  • matplotlib to create a scatter plot using the "Year" column as the x-axis and the "CSIRO Adjusted Sea Level" column as the y-axix.
  • the linregress function from scipy.stats to get the slope and y-intercept of the line of best fit. Plot the line of best fit over the top of the scatter plot. Make the line go through the year 2050 to predict the sea level rise in 2050.
  • Plot a new line of best fit just using the data from year 2000 through the most recent year in the dataset. Make the line also go through the year 2050 to predict the sea level rise in 2050 if the rate of rise continues as it has since the year 2000.
  • The x label should be "Year", the y label should be "Sea Level (inches)", and the title should be "Rise in Sea Level".

Unit tests are written for under test_module.py.

Development

For development, I will use main.py to test your functions. Click the "run" button and main.py will run.

Testing

I imported the tests from test_module.py to main.py . The tests will run automatically whenever you hit the "run" button.

Data Source

Global Average Absolute Sea Level Change, 1880-2014 from the US Environmental Protection Agency using data from CSIRO, 2015; NOAA, 2015. https://datahub.io/core/sea-level-rise

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages