3.9 KiB
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5e4f5c4b570f7e3a4949899f | Прогнозування змін рівня моря | 10 | 462370 | sea-level-predictor |
--description--
Ви будете працювати над цим проєктом з нашим стартовим кодом Replit.
- Start by importing the project on Replit.
- Next, you will see a
.replitwindow. - Select
Use run commandand click theDonebutton.
Ми досі розробляємо інтерактивну частину навчальної програми з Python. Наразі є декілька відео на ютуб-каналі freeCodeCamp.org, які навчать всього необхідного для виконання цього проєкту:
-
Python for Everybody Video Course(14 hours)
-
How to Analyze Data with Python Pandas (10 hours)
--instructions--
Ви проаналізуєте набір даних про зміни середнього рівня моря на планеті з 1880 року. Ви використаєте дані, щоб передбачити зміни рівня моря до 2050 року.
Використайте дані для виконання наступних завдань:
- Use Pandas to import the data from
epa-sea-level.csv. - Use matplotlib to create a scatter plot using the
Yearcolumn as the x-axis and theCSIRO Adjusted Sea Levelcolumn as the y-axix. - Use the
linregressfunction fromscipy.statsto 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 beSea Level (inches), and the title should beRise in Sea Level.
Для вас складені модульні тести у test_module.py.
Шаблон також містить команди для збереження та повернення зображення.
Розробка
Для розробки ви можете використати main.py, щоб протестувати свої функції. Натисніть кнопку «run» і main.py запуститься.
Тестування
Ми перенесли тести з test_module.py в main.py для вашої зручності. Тести запустяться автоматично, коли ви натиснете на кнопку «run».
Надсилання
Скопіюйте URL-адресу свого проєкту та відправте її до freeCodeCamp.
Джерело даних
Глобальна зміна середнього абсолютного рівня моря, 1880-2014 від Агентства з охорони навколишнього середовища США з використанням даних CSIRO, 2015; NOAA, 2015.
--hints--
Проєкт повинен пройти усі тести Python.
--solutions--
# Python challenges don't need solutions,
# because they would need to be tested against a full working project.
# Please check our contributing guidelines to learn more.