4.7 KiB
id, title, challengeType, forumTopicId, dashedName
| id | title | challengeType | forumTopicId | dashedName |
|---|---|---|---|---|
| 5e46f802ac417301a38fb92b | Візуалізатор часового ряду перегляду сторінки | 10 | 462369 | page-view-time-series-visualizer |
--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--
У цьому проєкті ви візуалізуєте дані часових рядів, використовуючи лінійний графік, стовпчикову діаграму та коробковий графік. Ви будете використовувати Pandas, Matplotlib та Seaborn для візуалізації даних, які містять кількість щоденних переглядів на форумі freeCodeCamp.org з 09.05.2016 по 03.12.2019. Візуалізація даних допоможе вам зрозуміти тенденції відвідування та визначити річний і місячний приріст.
Використайте дані для виконання наступних завдань:
- Use Pandas to import the data from "fcc-forum-pageviews.csv". Set the index to the
datecolumn. - Clean the data by filtering out days when the page views were in the top 2.5% of the dataset or bottom 2.5% of the dataset.
- Create a
draw_line_plotfunction that uses Matplotlib to draw a line chart similar to "examples/Figure_1.png". The title should beDaily freeCodeCamp Forum Page Views 5/2016-12/2019. The label on the x axis should beDateand the label on the y axis should bePage Views. - Create a
draw_bar_plotfunction that draws a bar chart similar to "examples/Figure_2.png". It should show average daily page views for each month grouped by year. The legend should show month labels and have a title ofMonths. On the chart, the label on the x axis should beYearsand the label on the y axis should beAverage Page Views. - Create a
draw_box_plotfunction that uses Seaborn to draw two adjacent box plots similar to "examples/Figure_3.png". These box plots should show how the values are distributed within a given year or month and how it compares over time. The title of the first chart should beYear-wise Box Plot (Trend)and the title of the second chart should beMonth-wise Box Plot (Seasonality). Make sure the month labels on bottom start atJanand the x and y axis are labeled correctly. The boilerplate includes commands to prepare the data.
Для кожної діаграми обов’язково використайте копію кадру даних. Для вас складені модульні тести у test_module.py.
Шаблон також містить команди для збереження та повернення зображення.
Розробка
Для розробки ви можете використати main.py, щоб протестувати свої функції. Натисніть кнопку «run» і main.py запуститься.
Тестування
Ми імпортували тести з test_module.py до main.py для вашої зручності. Тести запустяться автоматично, коли ви натиснете на кнопку «run».
Надсилання
Скопіюйте URL-адресу свого проєкту та відправте її до freeCodeCamp.
--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.