{"id":300521,"date":"2020-03-21T21:00:26","date_gmt":"2020-03-21T21:00:26","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=300521"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=300521","title":{"rendered":"\u0410\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u043a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441\u0443 \u0447\u0430\u0441\u0442\u044c 2, \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0432 \u041a\u0438\u0442\u0430\u0435"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/493456\/\">\n<p>\u0412\u0432\u0438\u0434\u0443 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441 \u0432\u0441\u0451 \u0436\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u043b\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0438\u0440\u0443, \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0432\u0438\u0440\u0443\u0441\u0443 \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0432 \u041a\u0438\u0442\u0430\u0435. \u041a\u043e\u0433\u0434\u0430 \u043f\u0430\u043d\u0434\u0435\u043c\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430\u0441\u044c, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 <a href=\"https:\/\/habr.com\/ru\/post\/489100\/\">\u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u041a\u0438\u0442\u0430\u044e<\/a>, \u0438 \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u043f\u043e\u0447\u0442\u0438 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430, \u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u0430\u0434\u0438\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u044b, \u0433\u0434\u0435 \u043f\u0430\u043d\u0434\u0435\u043c\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f. \u0414\u0430\u043d\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043d\u0438 \u043d\u0430 \u0447\u0442\u043e \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u043c\u043d\u0435\u043d\u0438\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0430.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/au\/x4\/bb\/aux4bbrxcy4_l3pir69qoblkz-g.jpeg\"><br \/>  &copy; <a href=\"https:\/\/www.rospotrebnadzor.ru\/\" rel=\"nofollow\">\u0420\u043e\u0441\u043f\u043e\u0442\u0440\u0435\u0431\u043d\u0430\u0434\u0437\u043e\u0440<\/a><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"1-poluchenie-dannyh\">1. \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445<\/h2>\n<p>  <\/p>\n<pre><code class=\"python\">import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline  sns.set(rc={'figure.figsize':(20, 5)})<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u043f\u0435\u0440\u0432\u043e\u043c <a href=\"https:\/\/habr.com\/ru\/post\/489100\/\">\u0430\u043d\u0430\u043b\u0438\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445<\/a> \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0438\u0437 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 <a href=\"https:\/\/www.who.int\/emergencies\/diseases\/novel-coronavirus-2019\/situation-reports\" rel=\"nofollow\">\u0412\u041e\u0417<\/a>, \u043d\u043e \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0431\u044b\u043b\u043e \u0432\u0437\u044f\u0442\u044c \u0438\u0445 \u0438\u0437 \u043e\u0442\u0447\u0451\u0442\u043e\u0432 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0438\u0442\u0435\u0442\u0430 \u0414\u0436\u043e\u043d\u0441\u0430 \u0425\u043e\u043f\u043a\u0438\u043d\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f <a href=\"https:\/\/github.com\/CSSEGISandData\/COVID-19\/tree\/master\/csse_covid_19_data\/csse_covid_19_time_series\" rel=\"nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">confirmed = pd.read_csv('time_series_19-covid-Confirmed.csv') recovered = pd.read_csv('time_series_19-covid-Recovered.csv') deaths = pd.read_csv('time_series_19-covid-Deaths.csv')<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"python\"># \u0441\u0442\u0440\u0430\u043d\u044b \u0441 \u0441\u0430\u043c\u044b\u043c \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0432\u043e\u043c \u0437\u0430\u0440\u0430\u0437\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u043b\u044e\u0434\u0435\u0439 df = confirmed.copy() df = df.groupby('Country\/Region').sum() df = df.sort_values(by=df.columns[-1], ascending=False)  countries = list(df.head(5).index)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418\u0437 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0441\u0442\u0440\u0430\u043d\u044b \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0437\u0430\u0440\u0430\u0437\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u043b\u044e\u0434\u0435\u0439 \u0438 \u0432\u044b\u0431\u0440\u0430\u043b \u0438\u0437 \u043d\u0438\u0445 \u043f\u044f\u0442\u044c \u0441\u0442\u0440\u0430\u043d \u0441 \u043d\u0430\u0438\u0445\u0443\u0434\u0448\u0435\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0435\u0439 \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u041a\u0438\u0442\u0430\u0439.<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">print(countries)<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"plaintext\">['China', 'Italy', 'Iran', 'Spain', 'Germany']<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"python\">def transform_data(df, countries):     df = df[df['Country\/Region'].isin(countries)]     columns = [i for i in df.columns if i not in ['Province\/State', 'Lat', 'Long']]     df = df[columns]         df = df.groupby('Country\/Region').sum()      df = df.T     df['Date'] = df.index     df['Date'] = pd.to_datetime(df['Date'], format='%m\/%d\/%y')     df = df.reset_index(drop=True)     df.columns.name = None      def by_day(col):         res = col.rolling(window=2).apply(lambda x: x.iloc[1] - x.iloc[0])         res[0] = col[0]         return res      df[countries] = df[countries].apply(by_day)      return df<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0437 \u043f\u044f\u0442\u0438 \u0441\u0442\u0440\u0430\u043d \u044f \u0440\u0430\u0441\u0447\u0438\u0442\u0430\u043b \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u0440\u0430\u0437\u0438\u0432\u0448\u0438\u0445\u0441\u044f, \u0443\u043c\u0435\u0440\u0448\u0438\u0445 \u0438 \u0432\u044b\u0437\u0434\u043e\u0440\u043e\u0432\u0435\u0432\u0448\u0438\u0445 \u0437\u0430 \u0434\u0435\u043d\u044c.<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">confirmed = transform_data(confirmed, countries) recovered = transform_data(recovered, countries) deaths = transform_data(deaths, countries)<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"2-chistka-dannyh-ot-vybrosov\">2. \u0427\u0438\u0441\u0442\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 \u0432\u044b\u0431\u0440\u043e\u0441\u043e\u0432<\/h2>\n<p>  <\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u044b\u0437\u0434\u043e\u0440\u043e\u0432\u0435\u0432\u0448\u0438\u0445 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430, \u0442.\u043a. \u0441\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0449\u0435\u043d\u044b \u0438 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0438\u043c\u0435\u044e\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438, \u043f\u043e-\u044d\u0442\u043e\u043c\u0443 \u044f \u0438\u0445 \u043d\u0435 \u0431\u0443\u0434\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>\u0427\u0438\u0441\u0442\u043a\u0430 \u0432\u044b\u0431\u0440\u043e\u0441\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0437\u0430\u0440\u0430\u0437\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u043b\u044e\u0434\u0435\u0439 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043a\u043e\u0433\u0434\u0430 \u0434\u0432\u0430 \u0434\u043d\u044f \u043f\u043e\u0434\u0440\u044f\u0434 \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438\u0437 \u043e\u0431\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u044b, \u0442.\u0435. \u0432 \u043e\u0434\u0438\u043d\u044c \u0434\u0435\u043d\u044c \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u0430\u043b\u043e, \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0437\u0430\u0440\u0430\u0437\u0438\u0432\u0448\u0438\u0445\u0441\u044f, \u0442\u043e \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0435\u0440\u0443 \u0438\u0445 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0447\u0438\u0441\u043b\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u043f\u043e \u041a\u0438\u0442\u0430\u044e \u0437\u0430 \u0447\u0438\u0441\u043b\u0430 2020-02-12 \u2014 2020-02-14 \u0434\u0430\u043d\u043d\u044b\u0435 \u0443\u0436 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438\u0437 \u043e\u0431\u0449\u0435\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u044b, \u043f\u043e-\u044d\u0442\u043e\u043c\u0443 \u0437\u0430 \u044d\u0442\u0438 \u0434\u0430\u0442\u044b \u044f \u0432\u0437\u044f\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0441\u0432\u043e\u0435\u0433\u043e <a href=\"https:\/\/habr.com\/ru\/post\/489100\/\">\u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043e\u0442\u0447\u0435\u0442\u0430<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 <a href=\"https:\/\/www.who.int\/emergencies\/diseases\/novel-coronavirus-2019\/situation-reports\" rel=\"nofollow\">\u0412\u041e\u0417<\/a>.<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">confirmed.loc[confirmed['Date'].isin(['2020-02-22', '2020-02-23']), 'China'] = confirmed.loc[confirmed['Date'].isin(['2020-02-22', '2020-02-23']), 'China'].mean()  #2020-02-12 - 2020-02-14 \u0414\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u043e\u0442\u0447\u0451\u0442\u043e\u0432 \u0412\u041e\u0417 confirmed.loc[confirmed['Date'] == '2020-02-12', 'China'] = 2022 confirmed.loc[confirmed['Date'] == '2020-02-13', 'China'] = 1820 confirmed.loc[confirmed['Date'] == '2020-02-14', 'China'] = 1998  confirmed.loc[confirmed['Date'].isin(['2020-03-12', '2020-03-13']), 'Italy'] = confirmed.loc[confirmed['Date'].isin(['2020-03-12', '2020-03-13']), 'Italy'].mean()  confirmed.loc[confirmed['Date'].isin(['2020-03-12', '2020-03-13']), 'Spain'] = confirmed.loc[confirmed['Date'].isin(['2020-03-12', '2020-03-13']), 'Spain'].mean()<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0443\u043c\u0435\u0440\u0448\u0438\u0445 \u044f \u043f\u043e\u0447\u0438\u0441\u0442\u0438\u043b \u0434\u0430\u043d\u043d\u044b\u0435 \u0430\u043d\u0430\u043b\u0433\u043e\u0438\u0447\u043d\u043e, \u0442.\u0435. \u0435\u0441\u043b\u0438 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u044b\u043b\u0438 \u0434\u0432\u0430 \u043f\u043e\u0434\u0440\u044f\u0434 \u0438\u0434\u0443\u0449\u0438\u0435 \u0434\u043d\u044f \u0432\u044b\u0431\u0438\u0432\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u0438\u0437 \u043e\u0431\u0449\u0435\u0439 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0438, \u0442\u043e \u044f \u0431\u0440\u0430\u043b \u0438\u0445 \u0441\u0440\u0435\u0434\u043d\u0435\u0435.<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">deaths.loc[deaths['Date'].isin(['2020-01-28', '2020-01-29']), 'China'] = deaths.loc[deaths['Date'].isin(['2020-01-28', '2020-01-29']), 'China'].mean() deaths.loc[deaths['Date'].isin(['2020-02-12', '2020-02-13']), 'China'] = deaths.loc[deaths['Date'].isin(['2020-02-12', '2020-02-13']), 'China'].mean() deaths.loc[deaths['Date'].isin(['2020-02-21', '2020-02-22']), 'China'] = deaths.loc[deaths['Date'].isin(['2020-02-21', '2020-02-22']), 'China'].mean() deaths.loc[deaths['Date'].isin(['2020-02-23', '2020-02-24']), 'China'] = deaths.loc[deaths['Date'].isin(['2020-02-23', '2020-02-24']), 'China'].mean()  deaths.loc[deaths['Date'].isin(['2020-03-12', '2020-03-13']), 'Italy'] = deaths.loc[deaths['Date'].isin(['2020-03-12', '2020-03-13']), 'Italy'].mean()<\/code><\/pre>\n<p>  <\/p>\n<h2 id=\"3-otrisovka-grafikov\">3. \u041e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432<\/h2>\n<p>  <\/p>\n<pre><code class=\"python\">def draw_graph(deaths, confirmed, country):     fig, ax = plt.subplots()     plt.xticks(rotation=45, ha=&quot;right&quot;)     sns.lineplot(x='Date', y=country, data=deaths, ax=ax, color='b', label='\u0423\u043c\u0435\u0440\u0448\u0438\u0435', marker='o')     ax.set(xlabel='\u0414\u0430\u0442\u0430', ylabel='\u041a\u043e\u043b-\u0432\u043e \u0443\u043c\u0435\u0440\u0448\u0438\u0445 \u0437\u0430 \u0434\u0435\u043d\u044c')     plt.legend(bbox_to_anchor=(0.01, 0.95), loc='upper left')     ax2 = ax.twinx()     sns.lineplot(x='Date', y=country, data=confirmed, ax=ax2, color='r', label='\u0418\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435', marker='o')     ax2.set(ylabel='\u041a\u043e\u043b-\u0432\u043e \u0438\u043d\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0437\u0430 \u0434\u0435\u043d\u044c');     plt.legend(bbox_to_anchor=(0.01, 0.85), loc='upper left');      ax.set(xticks=confirmed['Date'].values);<\/code><\/pre>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0438 \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/489100\/\">\u043f\u0435\u0440\u0432\u043e\u043c \u043e\u0442\u0447\u0435\u0442\u0435<\/a>, \u044f \u043d\u0430\u043b\u043e\u0436\u0438\u043b \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0437\u0430\u0440\u0430\u0437\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0443\u043c\u0435\u0440\u0448\u0438\u0445 \u0437\u0430 \u0434\u0435\u043d\u044c \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430.<\/p>\n<p>  <\/p>\n<h3 id=\"kitay\">\u041a\u0438\u0442\u0430\u0439:<\/h3>\n<p>  <\/p>\n<pre><code class=\"python\">draw_graph(deaths, confirmed, 'China')<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sz\/ck\/yq\/szckyqpbj45yvkkwkyhnood9gcm.png\"><\/p>\n<p>  <\/p>\n<p>\u041d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u043f\u043e \u041a\u0438\u0442\u0430\u044e \u0432\u0438\u0434\u043d\u043e \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043f\u0438\u043a\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0435\u0442\u0441\u044f \u0438\u043d\u043a\u0443\u0431\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u043c \u0432\u0438\u0440\u0443\u0441\u0430 (\u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0432\u0435\u0440\u043d\u043e \u043f\u043e\u0434\u043c\u0435\u0447\u0435\u043d\u043e <a href=\"https:\/\/habr.com\/ru\/post\/489100\/#comment_21299882\">\u0437\u0434\u0435\u0441\u044c<\/a> \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c <a href=\"https:\/\/habr.com\/ru\/users\/andy_u\/\" class=\"user_link\">Andy_U<\/a> \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043f\u043e <a href=\"https:\/\/habr.com\/ru\/post\/489100\/\">\u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u0430\u043d\u0430\u043b\u0438\u0437\u0443<\/a>), \u0438\u043c\u0435\u043d\u043d\u043e \u0441 \u0442\u0430\u043a\u0438\u043c \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u044f \u0438 \u043f\u044b\u0442\u0430\u044e\u0441\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u0442\u0440\u0430\u043d\u0430\u043c.<\/p>\n<p>  <\/p>\n<h3 id=\"italiya\">\u0418\u0442\u0430\u043b\u0438\u044f:<\/h3>\n<p>  <\/p>\n<pre><code class=\"python\">draw_graph(deaths, confirmed, 'Italy')<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/gk\/vu\/et\/gkvuetpssc1dnsbo_qeihowkgog.png\"><\/p>\n<p>  <\/p>\n<h3 id=\"iran\">\u0418\u0440\u0430\u043d:<\/h3>\n<p>  <\/p>\n<pre><code class=\"python\">draw_graph(deaths, confirmed, 'Iran')<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/of\/nz\/gt\/ofnzgtj_izrcf8zpy_h4yqwy0yy.png\"><\/p>\n<p>  <\/p>\n<p>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0432 \u0418\u0440\u0430\u043d\u0435 \u043d\u0430\u043c\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0432\u043e\u0440\u043e\u0442?, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435 \u043d\u0430 \u044d\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435.<\/p>\n<p>  <\/p>\n<h3 id=\"ispaniya\">\u0418\u0441\u043f\u0430\u043d\u0438\u044f:<\/h3>\n<p>  <\/p>\n<pre><code class=\"python\">draw_graph(deaths, confirmed, 'Spain')<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ym\/am\/et\/ymamet5gwdvry_on5yh4r3miqdo.png\"><\/p>\n<p>  <\/p>\n<h3 id=\"germaniya\">\u0413\u0435\u0440\u043c\u0430\u043d\u0438\u044f:<\/h3>\n<p>  <\/p>\n<pre><code class=\"python\">draw_graph(deaths, confirmed, 'Germany')<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/iy\/yg\/mk\/iyygmkmq_yxfugm-jowtn_acbfa.png\"><\/p>\n<p>  <\/p>\n<h2 id=\"4-vyvody\">4. \u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>  <\/p>\n<p>\u0418\u0437 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u043f\u0430\u043d\u0434\u0435\u043c\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0431\u0438\u0440\u0430\u0435\u0442 \u043e\u0431\u043e\u0440\u043e\u0442\u044b, \u0445\u043e\u0442\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043d\u0430\u043c\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0432\u043e\u0440\u043e\u0442 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0418\u0440\u0430\u043d\u0443. \u041f\u043e\u0432\u0442\u043e\u0440\u044e \u043e\u043f\u044f\u0442\u044c, \u0447\u0442\u043e \u044f \u043f\u044b\u0442\u0430\u044e\u0441\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0432 \u041a\u0438\u0442\u0430\u0435 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u0441\u0442\u0440\u0430\u043d\u0430\u0445 \u0438 \u043f\u043e\u0445\u043e\u0436\u0435 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u043f\u043e\u043a\u0430 \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0439.<\/p>\n<p>  <\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0439 <a href=\"https:\/\/github.com\/cdies\/nCow_world\" rel=\"nofollow\">\u043a\u043e\u0434<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0441\u0442 \u043f\u043e \u043a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441\u0443 \u2014 &quot;\u0410\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u043a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441\u0443 SARS-CoV-2 (2019-nCov)&quot;, \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e <a href=\"https:\/\/habr.com\/ru\/post\/489100\/\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/493456\/\"> https:\/\/habr.com\/ru\/post\/493456\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/493456\/\">\n<p>\u0412\u0432\u0438\u0434\u0443 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043a\u043e\u0440\u043e\u043d\u0430\u0432\u0438\u0440\u0443\u0441 \u0432\u0441\u0451 \u0436\u0435 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0438\u043b\u0441\u044f \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043c\u0438\u0440\u0443, \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0432\u0438\u0440\u0443\u0441\u0443 \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u0431\u044b\u043b\u043e \u0432 \u041a\u0438\u0442\u0430\u0435. \u041a\u043e\u0433\u0434\u0430 \u043f\u0430\u043d\u0434\u0435\u043c\u0438\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u043b\u0430\u0441\u044c, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 <a href=\"https:\/\/habr.com\/ru\/post\/489100\/\">\u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u041a\u0438\u0442\u0430\u044e<\/a>, \u0438 \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u043c \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u043f\u043e\u0447\u0442\u0438 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u0430, \u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u043a\u0430\u043a\u043e\u0439 \u0441\u0442\u0430\u0434\u0438\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0442\u0440\u0430\u043d\u044b, \u0433\u0434\u0435 \u043f\u0430\u043d\u0434\u0435\u043c\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0442\u044c\u0441\u044f. \u0414\u0430\u043d\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043d\u0438 \u043d\u0430 \u0447\u0442\u043e \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0443\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u043c \u043c\u043d\u0435\u043d\u0438\u0435\u043c \u0430\u0432\u0442\u043e\u0440\u0430.<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/au\/x4\/bb\/aux4bbrxcy4_l3pir69qoblkz-g.jpeg\"><br \/>  &copy; <a href=\"https:\/\/www.rospotrebnadzor.ru\/\" rel=\"nofollow\">\u0420\u043e\u0441\u043f\u043e\u0442\u0440\u0435\u0431\u043d\u0430\u0434\u0437\u043e\u0440<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-300521","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/300521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=300521"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/300521\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=300521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=300521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=300521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}