{"id":309717,"date":"2020-09-10T03:00:21","date_gmt":"2020-09-10T03:00:21","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=309717"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2020-09-10T03:00:21","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=309717","title":{"rendered":"Black [O]lives Matter: \u0440\u0430\u0441\u0430, \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b \u0438 \u043e\u0433\u043e\u043d\u044c \u043d\u0430 \u043f\u043e\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0432 \u0421\u0428\u0410. \u0427\u0430\u0441\u0442\u044c 3"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/518202\/\">\n<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u043d\u0430\u0448\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432 \u0421\u0428\u0410 \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u043e\u0439 \u043f\u043e\u043b\u0438\u0446\u0435\u0439\u0441\u043a\u0438\u0445 \u0438 \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0431\u0435\u043b\u043e\u0439 \u0438 \u0447\u0435\u0440\u043d\u043e\u0439 (\u0430\u0444\u0440\u043e\u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u043e\u0439) \u0440\u0430\u0441. \u041d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/517776\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0441\u044b\u043b\u043a\u0430\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u0435\u0433\u043e \u0446\u0435\u043b\u044f\u0445 \u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0445 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430\u0445 \/ \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u044f\u0445; \u0430 \u0432\u043e <a href=\"https:\/\/habr.com\/ru\/post\/517782\/\" rel=\"noopener noreferrer nofollow\">\u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u0431\u044b\u043b\u0430 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c\u044e, \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0433\u0438\u0431\u0435\u043b\u044c\u044e \u043e\u0442 \u0440\u0443\u043a \u0441\u043b\u0443\u0436\u0431 \u043f\u0440\u0430\u0432\u043e\u043f\u043e\u0440\u044f\u0434\u043a\u0430.<\/p>\n<p>\u041d\u0430\u043f\u043e\u043c\u043d\u044e \u0442\u0430\u043a\u0436\u0435 \u0438 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 (\u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u0441 2000 \u043f\u043e 2018 \u0433\u043e\u0434):<\/p>\n<ul>\n<li>\n<p>\u0412 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c (\u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u043c) \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u0431\u0435\u043b\u044b\u0445 \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0445. <\/p>\n<\/li>\n<li>\n<p>\u0412 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043f\u043e\u0433\u0438\u0431\u0430\u0435\u0442 5.9 \u043d\u0430 1 \u043c\u043b\u043d. \u0447\u0435\u0440\u043d\u044b\u0445 \u0438 2.3 \u043d\u0430 1 \u043c\u043b\u043d. \u0431\u0435\u043b\u044b\u0445 (\u0447\u0435\u0440\u043d\u044b\u0445 \u0432 2.6 \u0440\u0430\u0437 \u0431\u043e\u043b\u044c\u0448\u0435).<\/p>\n<\/li>\n<li>\n<p>\u0413\u043e\u0434\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u0431\u0440\u043e\u0441 (\u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435) \u043f\u043e \u0433\u0438\u0431\u0435\u043b\u0438 \u0447\u0435\u0440\u043d\u043e\u043a\u043e\u0436\u0438\u0445 \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043f\u043e\u0447\u0442\u0438 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0432\u044b\u0448\u0435, \u0447\u0435\u043c \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0431\u0435\u043b\u044b\u043c \u0436\u0435\u0440\u0442\u0432\u0430\u043c. <\/p>\n<\/li>\n<li>\n<p>\u0416\u0435\u0440\u0442\u0432\u044b \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0441\u0440\u0435\u0434\u0438 \u0431\u0435\u043b\u044b\u0445 \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0443\u0442 (\u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u043d\u0430 0.1 &#8212; 0.2 \u0432 \u0433\u043e\u0434), \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0436\u0435\u0440\u0442\u0432\u044b \u0441\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u043d\u044b\u0445 \u0432\u0435\u0440\u043d\u0443\u043b\u0438\u0441\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c 2009 \u0433. \u043f\u043e\u0441\u043b\u0435 \u043f\u0438\u043a\u0430 \u0432 2011 &#8212; 2013 \u0433\u0433.<\/p>\n<\/li>\n<li>\n<p>\u0411\u0435\u043b\u044b\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u044e\u0442 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0435, \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438, \u043d\u043e \u0432 3 \u0440\u0430\u0437\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 \u0432 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 (\u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0441\u044b).<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0440\u0435\u0434\u0438 \u0431\u0435\u043b\u044b\u0445 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0432\u0441\u0435\u0433\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0430 (\u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0432 2 \u0440\u0430\u0437\u0430 \u0437\u0430 18 \u043b\u0435\u0442). \u041f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u043d\u044b\u0445 \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0441\u0442\u0435\u0442, \u043d\u043e \u0441\u043a\u0430\u0447\u043a\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e. \u0417\u0430 \u0432\u0435\u0441\u044c \u043f\u0435\u0440\u0438\u043e\u0434 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u043d\u044b\u0445 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0442\u0430\u043a\u0436\u0435 \u0432 2 \u0440\u0430\u0437\u0430 (\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u0435\u043b\u044b\u043c).<\/p>\n<\/li>\n<li>\n<p>\u0413\u0438\u0431\u0435\u043b\u044c \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438&nbsp;\u0441\u0432\u044f\u0437\u0430\u043d\u0430&nbsp;\u0441 \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e (\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439). \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u044d\u0442\u0430 \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044f \u043d\u0435\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u0430 \u043f\u043e \u0440\u0430\u0441\u0430\u043c: \u0434\u043b\u044f \u0431\u0435\u043b\u044b\u0445 \u043e\u043d\u0430 \u0431\u043b\u0438\u0437\u043a\u0430 \u043a \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0439, \u0434\u043b\u044f \u0447\u0435\u0440\u043d\u044b\u0445 \u0434\u0430\u043b\u0435\u043a\u0430 \u043e\u0442 \u0442\u0430\u043a\u043e\u0432\u043e\u0439.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043c\u0435\u0440\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438 \u043f\u0440\u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0445 \u0441 \u043f\u043e\u043b\u0438\u0446\u0438\u0435\u0439 \u0440\u0430\u0441\u0442\u0443\u0442 &#171;\u0432 \u043e\u0442\u0432\u0435\u0442&#187; \u043d\u0430 \u0440\u043e\u0441\u0442 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438, \u0441 \u043b\u0430\u0433\u043e\u043c \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0438\u0434\u043d\u043e \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u0441\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u043d\u044b\u0445).<\/p>\n<\/li>\n<li>\n<p>\u0411\u0435\u043b\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0447\u0430\u0449\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442 \u0441\u043c\u0435\u0440\u0442\u044c \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u043a\u0430\u043a \u044f \u043e\u0431\u0435\u0449\u0430\u043b, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0448\u0442\u0430\u0442\u0430\u043c \u0421\u0428\u0410, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c, \u043b\u0438\u0431\u043e \u043e\u043f\u0440\u043e\u0432\u0435\u0440\u0433\u043d\u0443\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u044b, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0432 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0445 \u0432\u0441\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u044b. <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043c\u044b \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f \u044d\u0442\u043e\u0439 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0448\u0430\u0433 \u043d\u0430\u0437\u0430\u0434 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 &#171;\u0432\u0441\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f&#187; (All Offenses) \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0432\u0437\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u043c\u044b\u0435 &#171;\u0437\u043b\u043e\u0434\u0435\u0439\u0441\u043a\u0438\u0435&#187;. \u041c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u043c\u043e\u0438\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0435\u0435, \u0442\u0430\u043a \u043a\u0430\u043a &#171;\u0432\u0441\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f&#187; \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0435\u043b\u043a\u043e\u0435 \u0432\u043e\u0440\u043e\u0432\u0441\u0442\u0432\u043e \u0438\u043b\u0438 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044e \u043d\u0430\u0440\u043a\u043e\u0442\u0438\u043a\u0430\u043c\u0438, \u0447\u0442\u043e (\u043f\u043e \u043b\u043e\u0433\u0438\u043a\u0435) \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c, \u043f\u0440\u043e\u0432\u043e\u0446\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u043f\u043e\u043b\u0438\u0446\u0435\u0439\u0441\u043a\u0438\u0445 \u043d\u0430 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u0443. \u0425\u043e\u0442\u044f \u044f \u043b\u0438\u0447\u043d\u043e \u043d\u0435 \u043c\u043e\u0433\u0443 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0441 \u044d\u0442\u0438\u043c \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u044c\u0441\u044f \u0438 \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e \u043b\u044e\u0431\u043e\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u043b\u0435\u0447\u044c \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e\u043b\u0438\u0446\u0438\u0438 (\u043a\u043e\u0442\u043e\u0440\u043e\u0435, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043d\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0435 \u043b\u0443\u0447\u0448\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c)&#8230; \u0432\u0441\u0435 \u0436\u0435, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u044f\u0432\u0438\u043c \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u043e \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c!<\/p>\n<h2>\u041d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0438 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0432\u043c\u0435\u0441\u0442\u043e &#171;\u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439&#187;<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u0432 \u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0433\u0434\u0435 \u043c\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c, \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0438<\/p>\n<pre><code class=\"python\">df_crimes1 = df_crimes1.loc[df_crimes1['Offense'] == 'All Offenses']<\/code><\/pre>\n<p>\u043f\u0438\u0448\u0435\u043c:<\/p>\n<pre><code class=\"python\">df_crimes1 = df_crimes1.loc[df_crimes1['Offense'].str.contains('Assault|Murder')]<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043d\u0430\u0448 \u043d\u043e\u0432\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u0438\u0434\u044b \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439, <strong>\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u043d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u043c (Assault) \u0438 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e\u043c (Murder)<\/strong>. \u0417\u0430\u043c\u0435\u0447\u0443 \u0441\u0440\u0430\u0437\u0443, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043d\u0435\u043f\u0440\u0435\u0434\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e \u0438 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0441\u0430\u043c\u043e\u0437\u0430\u0449\u0438\u0442\u044b, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e. <\/p>\n<p>\u0412\u0435\u0441\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u0434 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u0412\u043e\u0442 \u0447\u0442\u043e \u0434\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u0447\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u0423\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0440\u0430\u0441\u044b:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ecd\/641\/32a\/ecd64132a2c8cb61da36e3427345a85a.png\" width=\"413\" height=\"264\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043c\u0435\u043d\u044c\u0448\u0435, \u043d\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043f\u043e\u0447\u0442\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c (\u043f\u043e \u0432\u0441\u0435\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c).<\/p>\n<p>\u0421\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0436\u0435\u0440\u0442\u0432\u0430\u043c\u0438 \u043f\u043e\u043b\u0438\u0446\u0438\u0438:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0a9\/8c4\/afe\/0a98c4afe7a973856069e3a96859be00.png\" width=\"439\" height=\"283\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3a3\/b33\/534\/3a3b33534f724ab2229825a7ecafdae2.png\" width=\"439\" height=\"286\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430:<\/p>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"180\" width=\"180\">\n<\/th>\n<th data-colwidth=\"150\" width=\"150\">\n<p>White_promln_cr<\/p>\n<\/th>\n<th>\n<p>White_promln_uof<\/p>\n<\/th>\n<th>\n<p>Black_promln_cr<\/p>\n<\/th>\n<th>\n<p>Black_promln_uof<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"180\" width=\"180\">\n<p>White_promln_cr<\/p>\n<\/th>\n<td data-colwidth=\"150\" width=\"150\">\n<p>1.000000<\/p>\n<\/td>\n<td>\n<p>0.684757<\/p>\n<\/td>\n<td>\n<p>0.986622<\/p>\n<\/td>\n<td>\n<p>0.729674<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"180\" width=\"180\">\n<p>White_promln_uof<\/p>\n<\/th>\n<td data-colwidth=\"150\" width=\"150\">\n<p><strong>0.684757<\/strong><\/p>\n<\/td>\n<td>\n<p>1.000000<\/p>\n<\/td>\n<td>\n<p>0.614132<\/p>\n<\/td>\n<td>\n<p>0.795486<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"180\" width=\"180\">\n<p>Black_promln_cr<\/p>\n<\/th>\n<td data-colwidth=\"150\" width=\"150\">\n<p>0.986622<\/p>\n<\/td>\n<td>\n<p>0.614132<\/p>\n<\/td>\n<td>\n<p>1.000000<\/p>\n<\/td>\n<td>\n<p>0.680893<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"180\" width=\"180\">\n<p>Black_promln_uof<\/p>\n<\/th>\n<td data-colwidth=\"150\" width=\"150\">\n<p>0.729674<\/p>\n<\/td>\n<td>\n<p>0.795486<\/p>\n<\/td>\n<td>\n<p><strong>0.680893<\/strong><\/p>\n<\/td>\n<td>\n<p>1.000000<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0445\u0443\u0436\u0435 (0.68 \u043f\u0440\u043e\u0442\u0438\u0432 0.88 \u0438 0.72 \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439). \u041d\u043e \u0440\u0430\u0434\u0443\u0435\u0442 \u0437\u0434\u0435\u0441\u044c, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435, \u0447\u0442\u043e \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0431\u0435\u043b\u044b\u043c\u0438 \u0438 \u0447\u0435\u0440\u043d\u044b\u043c\u0438, \u0442.\u0435. \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0436\u0435\u0440\u0442\u0432\u0430\u043c\u0438 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u0430\u044f <em>\u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u0430\u044f <\/em>\u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044f.<\/p>\n<p>\u041d\u0443, \u0438 \u043d\u0430\u0448 &#171;\u0441\u0430\u043c\u043e\u0434\u0435\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0434\u0435\u043a\u0441 &#8212; \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043a \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439:<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/73f\/926\/0e3\/73f9260e30e1537c74a2105823801019.png\" width=\"392\" height=\"272\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0441\u0430\u043c\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0435\u0449\u0435 \u0431\u043e\u043b\u0435\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0439, \u0447\u0435\u043c \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437. \u0412\u044b\u0432\u043e\u0434 \u0442\u043e\u0442 \u0436\u0435 &#8212; \u0431\u0435\u043b\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u0438 \u0447\u0430\u0449\u0435 \u0433\u0438\u0431\u043d\u0443\u0442 \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0435.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0432 \u0441\u0438\u043b\u0435. <\/p>\n<p>\u0427\u0442\u043e \u0436, \u0442\u0435\u043f\u0435\u0440\u044c &#8212; \u0443\u0440\u043e\u043a\u0438 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0438! \ud83d\ude42<\/p>\n<h2>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h2>\n<p>\u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u044b \u0438\u0437 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0424\u0411\u0420, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/crime-data-explorer.fr.cloud.gov\/api#summary-controller\" rel=\"noopener noreferrer nofollow\">\u043e\u0446\u0435\u043d\u043a\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0432\u0438\u0434\u043e\u0432 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c<\/a> (State level UCR Estimated Crime Data Endpoint) &#8212; \u0431\u0435\u0437 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0438 \u043f\u043e \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438 (CSV <a href=\"https:\/\/yadi.sk\/d\/2rA1BR8pzT_Yyw\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>);<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/crime-data-explorer.fr.cloud.gov\/api#arrest-data-controller\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c<\/a> (State level Arrest Demographic Count By Offense Endpoint) &#8212; \u0441 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u043e\u0439 \u043f\u043e \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438 (CSV <a href=\"https:\/\/yadi.sk\/d\/J--y1RfgVYqQFA\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>).<\/p>\n<\/li>\n<\/ul>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044b\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c, \u0448\u0442\u0430\u0442\u0430\u043c \u0438 \u0440\u0430\u0441\u043e\u0432\u043e\u043c\u0443 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0443 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u043a\u0430\u043a \u044f \u043d\u0438 \u0431\u0438\u043b\u0441\u044f: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u044b\u0435, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0448\u0442\u0430\u0442\u0430\u043c. \u041d\u043e \u0438 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043a\u0440\u043e\u043c\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043f\u043e \u0432\u0441\u0435\u043c 51 \u0448\u0442\u0430\u0442\u0443 \u0441 1991 \u043f\u043e 2018 \u0433\u043e\u0434, \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0432\u0438\u0434\u0430\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439:<\/p>\n<ol>\n<li>\n<p><strong>violent crime<\/strong>: \u0432\u0441\u0435 \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f (\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e, \u0433\u0440\u0430\u0431\u0435\u0436, \u0438\u0437\u043d\u0430\u0441\u0438\u043b\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u044f\u0433\u0447\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u043c\u0438), \u0441\u043c. \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 <a href=\"https:\/\/ucr.fbi.gov\/crime-in-the-u.s\/2018\/crime-in-the-u.s.-2018\/topic-pages\/violent-crime\" rel=\"noopener noreferrer nofollow\">\u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0424\u0411\u0420<\/a>;<\/p>\n<\/li>\n<li>\n<p><strong>homicide<\/strong>: \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e<\/p>\n<\/li>\n<li>\n<p><strong>rape legacy<\/strong>: \u0438\u0437\u043d\u0430\u0441\u0438\u043b\u043e\u0432\u0430\u043d\u0438\u0435 (\u043f\u043e \u0441\u0442\u0430\u0440\u044b\u043c \u043c\u0435\u0440\u043a\u0430\u043c &#8212; \u0434\u043e 2013 \u0433.)<\/p>\n<\/li>\n<li>\n<p><strong>rape revised<\/strong>: \u0438\u0437\u043d\u0430\u0441\u0438\u043b\u043e\u0432\u0430\u043d\u0438\u0435 (\u043f\u043e \u043d\u043e\u0432\u044b\u043c \u043c\u0435\u0440\u043a\u0430\u043c &#8212; \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 2013 \u0433.)<\/p>\n<\/li>\n<li>\n<p><strong>robbery<\/strong>: \u0433\u0440\u0430\u0431\u0435\u0436<\/p>\n<\/li>\n<li>\n<p><strong>aggravated assault<\/strong>: \u043d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u044f\u0433\u0447\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><strong>property crime<\/strong>: \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u0438\u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438<\/p>\n<\/li>\n<li>\n<p><strong>burglary<\/strong>: \u0432\u0437\u043b\u043e\u043c \/ \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0435 \u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/li>\n<li>\n<p><strong>larceny<\/strong>: \u0445\u0438\u0449\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p><strong>motor vehicle theft<\/strong>: \u0443\u0433\u043e\u043d \u0430\u0432\u0442\u043e\u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0430<\/p>\n<\/li>\n<li>\n<p><strong>arson<\/strong>: \u043f\u043e\u0434\u0436\u043e\u0433<\/p>\n<\/li>\n<\/ol>\n<p>\u0414\u043b\u044f \u0446\u0435\u043b\u0435\u0439 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 (violent crime), \u0447\u0442\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u0443\u0435\u0442\u0441\u044f \u0441 \u0432\u044b\u0448\u0435\u0438\u0437\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439.<\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043f\u043e 51 \u0448\u0442\u0430\u0442\u0443 \u0441 2000 \u043f\u043e 2018 \u0433\u043e\u0434, \u0441 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u043e\u0439 \u043f\u043e \u0440\u0430\u0441\u0430\u043c (\u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0435 \u0440\u0430\u0441\u043e\u0432\u044b\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 &#8212; \u0441\u043c. \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/517782\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>). \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0411\u0414 \u043f\u043e \u0430\u0440\u0435\u0441\u0442\u0430\u043c \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0440\u0443\u0433\u0443\u044e \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0443 \u043f\u043e \u0442\u0438\u043f\u0430\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u043f\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c, \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 4 \u0432\u0438\u0434\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u0440\u0430\u0432\u043e\u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0439 (\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e, \u0433\u0440\u0430\u0431\u0435\u0436, \u0438\u0437\u043d\u0430\u0441\u0438\u043b\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u044f\u0433\u0447\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u043c\u0438).<\/p>\n<h2>\u0413\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0431\u0435\u0437 \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438<\/h2>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0430 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c \u0431\u0435\u0437 \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u043e\u0432:<\/p>\n<pre><code class=\"python\">import pandas as pd, numpy as np  CRIME_STATES_FILE = ROOT_FOLDER + '\\\\crimes_by_state.csv' df_crime_states = pd.read_csv(CRIME_STATES_FILE, sep=';', header=0,                                usecols=['year', 'state_abbr', 'population', 'violent_crime'])<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<\/th>\n<th data-colwidth=\"120\" width=\"120\">\n<p>year<\/p>\n<\/th>\n<th data-colwidth=\"164\" width=\"164\">\n<p>state_abbr<\/p>\n<\/th>\n<th>\n<p>population<\/p>\n<\/th>\n<th>\n<p>violent_crime<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>0<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2016<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>4860545<\/p>\n<\/td>\n<td>\n<p>25878<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>1996<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>4273000<\/p>\n<\/td>\n<td>\n<p>24159<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>2<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>1997<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>4319000<\/p>\n<\/td>\n<td>\n<p>24379<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>3<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>1998<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>4352000<\/p>\n<\/td>\n<td>\n<p>22286<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>4<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>1999<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>4369862<\/p>\n<\/td>\n<td>\n<p>21421<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>&#8230;<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>&#8230;<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>&#8230;<\/p>\n<\/td>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1423<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2000<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>572059<\/p>\n<\/td>\n<td>\n<p>8626<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1424<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2001<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>573822<\/p>\n<\/td>\n<td>\n<p>9195<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1425<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2002<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>569157<\/p>\n<\/td>\n<td>\n<p>9322<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1426<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2003<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>557620<\/p>\n<\/td>\n<td>\n<p>9061<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1427<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2016<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>684336<\/p>\n<\/td>\n<td>\n<p>8236<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>1428 rows \u00d7 4 columns<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u043e\u043b\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0448\u0442\u0430\u0442\u043e\u0432 (CSV \u043f\u0435\u0440\u0435\u0447\u043d\u044f \u0448\u0442\u0430\u0442\u043e\u0432 <a href=\"https:\/\/yadi.sk\/d\/Fb5NOSiLiVXwDA\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c <\/a>&#8212; \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437). \u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0447\u0438\u0441\u0442\u0438\u043c \u0438 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<pre><code class=\"python\">df_crime_states = df_crime_states.merge(df_state_names, on='state_abbr') df_crime_states.dropna(inplace=True) df_crime_states.sort_values(by=['year', 'state_abbr'], inplace=True)<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f, \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u043c \u0443\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a:<\/p>\n<pre><code class=\"python\">df_crime_states['crime_promln'] = df_crime_states['violent_crime'] * 1e6 \/ df_crime_states['population']<\/code><\/pre>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u0441 2000 \u043f\u043e 2018 \u0433\u043e\u0434, \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0448\u0442\u0430\u0442\u043e\u0432 \u0432 \u0441\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0443\u0431\u0440\u0430\u0432 \u043b\u0438\u0448\u043d\u0438\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b:<\/p>\n<pre><code class=\"python\">df_crime_states_agg = df_crime_states.groupby(['state_name', 'year'])['violent_crime'].sum().unstack(level=1).T df_crime_states_agg.fillna(0, inplace=True) df_crime_states_agg = df_crime_states_agg.astype('uint32').loc[2000:2018, :]<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 19 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 (\u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439, \u0442.\u0435. \u043b\u0435\u0442 \u0441 2000 \u043f\u043e 2018) \u0438 51 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u043c (\u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0448\u0442\u0430\u0442\u043e\u0432).<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043c \u0442\u043e\u043f-10 \u0448\u0442\u0430\u0442\u043e\u0432 \u043f\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u043e\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"python\">df_crime_states_top10 = df_crime_states_agg.describe().T.nlargest(10, 'mean').astype('int32')<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<\/th>\n<th data-colwidth=\"72\" width=\"72\">\n<p>count<\/p>\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<p>mean<\/p>\n<\/th>\n<th data-colwidth=\"71\" width=\"71\">\n<p>std<\/p>\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<p>min<\/p>\n<\/th>\n<th data-colwidth=\"77\" width=\"77\">\n<p>25%<\/p>\n<\/th>\n<th data-colwidth=\"79\" width=\"79\">\n<p>50%<\/p>\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<p>75%<\/p>\n<\/th>\n<th>\n<p>max<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>state_name<\/p>\n<\/th>\n<th data-colwidth=\"72\" width=\"72\">\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<\/th>\n<th data-colwidth=\"71\" width=\"71\">\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<\/th>\n<th data-colwidth=\"77\" width=\"77\">\n<\/th>\n<th data-colwidth=\"79\" width=\"79\">\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<\/th>\n<th>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>California<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>181514<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>19425<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>153763<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>165508<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>178597<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>193022<\/p>\n<\/td>\n<td>\n<p>212867<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Texas<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>117614<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>6522<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>104734<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>113212<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>121091<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>122084<\/p>\n<\/td>\n<td>\n<p>126018<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Florida<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>110104<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>18542<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>81980<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>92809<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>113541<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>127488<\/p>\n<\/td>\n<td>\n<p>131878<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>New York<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>81618<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>9548<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>68495<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>75549<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>77563<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>85376<\/p>\n<\/td>\n<td>\n<p>105111<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Illinois<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>62866<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>10445<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>47775<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>54039<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>64185<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>69937<\/p>\n<\/td>\n<td>\n<p>81196<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Michigan<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>49273<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>5029<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>41712<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>44900<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>49737<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>54035<\/p>\n<\/td>\n<td>\n<p>56981<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Pennsylvania<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>46941<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>5066<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>39192<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>41607<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>48188<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>51021<\/p>\n<\/td>\n<td>\n<p>55028<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Tennessee<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>41951<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2432<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>38063<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>40321<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>41562<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>43358<\/p>\n<\/td>\n<td>\n<p>46482<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Georgia<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>40228<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>3327<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>34355<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>38283<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>39435<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>41495<\/p>\n<\/td>\n<td>\n<p>47353<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>North Carolina<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>37936<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>3193<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>32718<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>34706<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>38243<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>40258<\/p>\n<\/td>\n<td>\n<p>43125<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"python\">df_crime_states_top10 = df_crime_states_agg.loc[:, df_crime_states_agg_top10.index] plt = df_crime_states_top10.plot.box(figsize=(12, 10)) plt.set_ylabel('\u041a\u043e\u043b-\u0432\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 (2000 - 2018)')<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/538\/e9f\/163\/538e9f1633d10b08a5525f0372545b89.png\" width=\"745\" height=\"575\"><figcaption><\/figcaption><\/figure>\n<p>&#171;\u0413\u043e\u043b\u043b\u0438\u0432\u0443\u0434\u0441\u043a\u0438\u0439&#187; \u0448\u0442\u0430\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0435\u0436\u0430\u0435\u0442 \u043f\u043e \u044d\u0442\u043e\u0439 \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0435 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435. \u0422\u0440\u043e\u0439\u043a\u0430 \u043b\u0438\u0434\u0435\u0440\u043e\u0432 &#8212; \u044e\u0436\u043d\u044b\u0435 \u0448\u0442\u0430\u0442\u044b (\u041a\u0430\u043b\u0438\u0444\u043e\u0440\u043d\u0438\u044f, \u0422\u0435\u0445\u0430\u0441 \u0438 \u0424\u043b\u043e\u0440\u0438\u0434\u0430); \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e \u044d\u0442\u0438 \u0448\u0442\u0430\u0442\u044b \u0441\u043d\u044f\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0445 \u0444\u0438\u043b\u044c\u043c\u043e\u0432 \u043f\u0440\u043e \u0431\u0430\u043d\u0434\u0438\u0442\u043e\u0432 \ud83d\ude42<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0448\u0442\u0430\u0442\u0430\u0445 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0437\u0430 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 (\u041a\u0430\u043b\u0438\u0444\u043e\u0440\u043d\u0438\u044f, \u0424\u043b\u043e\u0440\u0438\u0434\u0430, \u0418\u043b\u043b\u0438\u043d\u043e\u0439\u0441), \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u043d \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0443\u0440\u043e\u0432\u043d\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0414\u0436\u043e\u0440\u0434\u0436\u0438\u0438).<\/p>\n<p>\u041f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u044e, \u0447\u0442\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0442\u043e\u043f-10 \u0448\u0442\u0430\u0442\u043e\u0432 \u043f\u043e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044e \u0432 2018 \u0433\u043e\u0434\u0443:<\/p>\n<pre><code class=\"python\">df_crime_states_2018 = df_crime_states.loc[df_crime_states['year'] == 2018] plt = df_crime_states_2018.nlargest(10, 'population').sort_values(by='population').plot.barh(x='state_name', y='population', legend=False, figsize=(10,5)) plt.set_xlabel('\u041d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u0435 (2018)') plt.set_ylabel('')<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6dc\/a89\/86f\/6dca8986fa252cf2d40295b71cb2c721.png\" width=\"651\" height=\"317\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0441\u044f, \u0442\u0435 \u0436\u0435 \u0444\u0430\u0431\u0435\u0440\u0436\u0435, \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u043f\u0440\u043e\u0444\u0438\u043b\u044c. \u0423\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u043c\u0441\u044f \u0432 \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u0438 \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u0435\u043c:<\/p>\n<pre><code class=\"python\"># \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c \u0437\u0430 2000 - 2018 \u0433\u0433 (\u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0430\u0440\u0438\u0444\u043c\u0435\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e \u043f\u043e\u043b\u044f\u043c) df_corr = df_crime_states[df_crime_states['year']&gt;=2000].groupby(['state_name']).mean() # \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u043e\u043b\u0431\u0446\u0430\u043c\u0438 \"\u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u0435\" \u0438 \"\u043a\u043e\u043b-\u0432\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439\" df_corr = df_corr.loc[:, ['population', 'violent_crime']] df_corr.corr(method='pearson').at['population', 'violent_crime']<\/code><\/pre>\n<p>&#8212; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u0438 <strong>0.98<\/strong>. \u0427\u0442\u043e \u0438 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u044c!<\/p>\n<p>\u0410 \u0432\u043e\u0442 \u0443\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0434\u0430\u044e\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u0434\u0440\u0443\u0433\u043e\u0439 \u0442\u043e\u043f-\u043b\u0438\u0441\u0442:<\/p>\n<pre><code class=\"python\">plt = df_crime_states_2018.nlargest(10, 'crime_promln').sort_values(by='crime_promln').plot.barh(x='state_name', y='crime_promln', legend=False, figsize=(10,5)) plt.set_xlabel('\u041a\u043e\u043b-\u0432\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043d\u0430 1 \u043c\u043b\u043d. \u0447\u0435\u043b. (2018)') plt.set_ylabel('')<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/db1\/713\/8d3\/db17138d37d8583031e3eff720b61504.png\" width=\"678\" height=\"317\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u043e\u0442 \u0442\u0430\u043a \u0434\u0435\u043b\u0430! \u041f\u043e \u0443\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u0432\u043f\u0435\u0440\u0435\u0434\u0438 \u0448\u0442\u0430\u0442\u044b \u0441 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f: \u041e\u043a\u0440\u0443\u0433 \u041a\u043e\u043b\u0443\u043c\u0431\u0438\u044f (\u0442.\u0435. \u0441\u0442\u043e\u043b\u0438\u0446\u0430 \u0421\u0428\u0410) \u0438 \u0410\u043b\u044f\u0441\u043a\u0430 (\u0432 \u043e\u0431\u043e\u0438\u0445 \u043f\u043e 700+ \u0442\u044b\u0441. \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043d\u0430 2018 \u0433.) \u0438 \u043e\u0434\u0438\u043d \u0448\u0442\u0430\u0442 \u0441\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e (\u041d\u044c\u044e-\u041c\u0435\u043a\u0441\u0438\u043a\u043e \u0441 2 \u043c\u043b\u043d. \u0447\u0435\u043b.) \u0418\u0437 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0442\u043e\u043f\u0430 \u0437\u0434\u0435\u0441\u044c \u0437\u0430\u0441\u0432\u0435\u0442\u0438\u043b\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0422\u0435\u043d\u043d\u0435\u0441\u0441\u0438, \u0447\u0442\u043e \u043f\u0440\u0438\u0434\u0430\u0435\u0442 \u044d\u0442\u043e\u043c\u0443 \u0448\u0442\u0430\u0442\u0443, \u043c\u044f\u0433\u043a\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u0443\u044e \u0440\u0435\u043f\u0443\u0442\u0430\u0446\u0438\u044e&#8230;<\/p>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043c \u043d\u0430\u0448\u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u043d\u0430 \u043a\u0430\u0440\u0442\u0435 \u0421\u0428\u0410. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 <a href=\"https:\/\/python-visualization.github.io\/folium\/\" rel=\"noopener noreferrer nofollow\">folium<\/a>:<\/p>\n<pre><code class=\"python\">import folium<\/code><\/pre>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 &#8212; \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0430 2018 \u0433. \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445:<\/p>\n<pre><code class=\"python\">FOLIUM_URL = 'https:\/\/raw.githubusercontent.com\/python-visualization\/folium\/master\/examples\/data' FOLIUM_US_MAP = f'{FOLIUM_URL}\/us-states.json'  m = folium.Map(location=[48, -102], zoom_start=3)  folium.Choropleth(     geo_data=FOLIUM_US_MAP,     name='choropleth',     data=df_crime_states_2018,     columns=['state_abbr', 'violent_crime'],     key_on='feature.id',     fill_color='YlOrRd',     fill_opacity=0.7,     line_opacity=0.2,     legend_name='\u041d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0430 2018 \u0433.',     bins=df_crime_states_2018['violent_crime'].quantile(list(np.linspace(0.0, 1.0, 5))).to_list(),     reset=True ).add_to(m)  folium.LayerControl().add_to(m)  m<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6f3\/186\/a72\/6f3186a72c2fdbe002942f54423b4309.JPG\" width=\"980\" height=\"589\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0442\u043e \u0436\u0435 \u0432 \u0443\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 (\u043d\u0430 1 \u043c\u043b\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a):<\/p>\n<pre><code class=\"python\">m = folium.Map(location=[48, -102], zoom_start=3)  folium.Choropleth(     geo_data=FOLIUM_US_MAP,     name='choropleth',     data=df_crime_states_2018,     columns=['state_abbr', 'crime_promln'],     key_on='feature.id',     fill_color='YlOrRd',     fill_opacity=0.7,     line_opacity=0.2,     legend_name='\u041d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u0437\u0430 2018 \u0433. (\u043d\u0430 1 \u043c\u043b\u043d. \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f)',     bins=df_crime_states_2018['crime_promln'].quantile(list(np.linspace(0.0, 1.0, 5))).to_list(),     reset=True ).add_to(m)  folium.LayerControl().add_to(m)  m<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/200\/f1d\/0a2\/200f1d0a2527d8f630fe1b0f6c6b66fe.JPG\" width=\"984\" height=\"591\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043f\u043e\u0440\u043e\u0432\u043d\u0443 \u0441\u0435\u0432\u0435\u0440\u043d\u044b\u0445 \u0438 \u044e\u0436\u043d\u044b\u0445 \u0448\u0442\u0430\u0442\u043e\u0432, \u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; \u043e\u0434\u043d\u0438 \u044e\u0436\u043d\u044b\u0435 \u0448\u0442\u0430\u0442\u044b \u043f\u043b\u044e\u0441 \u0441\u0442\u043e\u043b\u0438\u0446\u0430 \u0421\u0428\u0410 \u0438 \u0410\u043b\u044f\u0441\u043a\u0430. <\/p>\n<h2>\u0416\u0435\u0440\u0442\u0432\u044b \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c (\u0431\u0435\u0437 \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438)<\/h2>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u0433\u043b\u044f\u0434\u0438\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0448\u0442\u0430\u0442\u0430\u0445 \u0432 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u043f\u043e\u043b\u0438\u0446\u0435\u0439\u0441\u043a\u043e\u0439 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u044b \u043d\u0430 \u0443\u043d\u0438\u0447\u0442\u043e\u0436\u0435\u043d\u0438\u0435. <\/p>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435: \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u043d\u0430\u0448 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u043f\u043e \u0433\u0438\u0431\u0435\u043b\u0438 \u043e\u0442 \u0440\u0443\u043a \u0437\u0430\u043a\u043e\u043d\u0430 (\u0441\u043c. \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0447\u0430\u0441\u0442\u044c) \u043f\u043e\u043b\u043d\u044b\u0435 \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0448\u0442\u0430\u0442\u043e\u0432, \u0441\u0433\u0440\u0443\u043f\u043f\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c, \u0432\u044b\u0434\u0435\u043b\u0438\u043c \u043f\u0435\u0440\u0438\u043e\u0434 \u0441 2000 \u043f\u043e 2018 \u0433\u043e\u0434 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043c \u0443\u0434\u043e\u0431\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c.<\/p>\n<pre><code class=\"python\">df_fenc_agg_states = df_fenc.merge(df_state_names, how='inner', left_on='State', right_on='state_abbr') df_fenc_agg_states.fillna(0, inplace=True) df_fenc_agg_states = df_fenc_agg_states.rename(columns={'state_name_x': 'State Name'}) df_fenc_agg_states = df_fenc_agg_states.loc[:, ['Year', 'Race', 'State', 'State Name', 'Cause', 'UOF']] df_fenc_agg_states = df_fenc_agg_states.groupby(['Year', 'State Name', 'State'])['UOF'].count().unstack(level=0) df_fenc_agg_states.fillna(0, inplace=True) df_fenc_agg_states = df_fenc_agg_states.astype('uint16').loc[:, :2018] df_fenc_agg_states = df_fenc_agg_states.reset_index()<\/code><\/pre>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043c \u0442\u043e\u043f-10 \u0448\u0442\u0430\u0442\u043e\u0432 \u0437\u0430 2018 \u0433\u043e\u0434:<\/p>\n<pre><code class=\"python\">df_fenc_agg_states_2018 = df_fenc_agg_states.loc[:, ['State Name', 2018]] plt = df_fenc_agg_states_2018.nlargest(10, 2018).sort_values(2018).plot.barh(x='State Name', y=2018, legend=False, figsize=(10,5)) plt.set_xlabel('\u041a\u043e\u043b-\u0432\u043e \u0436\u0435\u0440\u0442\u0432 \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0437\u0430 2018 \u0433.') plt.set_ylabel('')<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5cc\/979\/fd2\/5cc979fd2ce585007ec64419e82feb78.png\" width=\"651\" height=\"317\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0437\u0430 \u0432\u0435\u0441\u044c \u043f\u0435\u0440\u0438\u043e\u0434 \u0432 \u0432\u0438\u0434\u0435 &#171;\u044f\u0449\u0438\u043a\u043e\u0432 \u0441 \u0443\u0441\u0430\u043c\u0438&#187;:<\/p>\n<pre><code class=\"python\">fenc_top10 = df_fenc_agg_states.loc[df_fenc_agg_states['State Name'].isin(df_fenc_agg_states_2018.nlargest(10, 2018)['State Name'])] fenc_top10 = fenc_top10.T fenc_top10.columns = fenc_top10.loc['State Name', :] fenc_top10 = fenc_top10.reset_index().loc[2:, :].set_index('Year') df_sorted = fenc_top10.mean().sort_values(ascending=False) fenc_top10 = fenc_top10.loc[:, df_sorted.index]  plt = fenc_top10.plot.box(figsize=(12, 6)) plt.set_ylabel('\u041a\u043e\u043b-\u0432\u043e \u0436\u0435\u0440\u0442\u0432 \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438 (2000 - 2018)')<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/6b1\/033\/3cc\/6b10333ccfd650ad4ffceb6c686ce694.png\" width=\"726\" height=\"357\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0443 \u0447\u0442\u043e \u0436\u0435, \u0442\u0430 \u0436\u0435 &#171;\u0432\u0435\u043b\u0438\u043a\u043e\u043b\u0435\u043f\u043d\u0430\u044f \u0442\u0440\u043e\u0438\u0446\u0430&#187;: \u041a\u0430\u043b\u0438\u0444\u043e\u0440\u043d\u0438\u044f, \u0422\u0435\u0445\u0430\u0441 \u0438 \u0424\u043b\u043e\u0440\u0438\u0434\u0430 \u043f\u043b\u044e\u0441 \u0435\u0449\u0435 \u0434\u0432\u0430 \u044e\u0436\u043d\u044b\u0445 \u0448\u0442\u0430\u0442\u0430 &#8212; \u0410\u0440\u0438\u0437\u043e\u043d\u0430 \u0438 \u0414\u0436\u043e\u0440\u0434\u0436\u0438\u044f. \u041b\u0438\u0434\u0435\u0440\u044b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u044e\u0442, \u043a\u0430\u043a \u0438 \u043f\u0440\u0435\u0436\u0434\u0435, \u0431\u043e\u043b\u044c\u0448\u0438\u0439 \u0440\u0430\u0437\u0431\u0440\u043e\u0441 \u043f\u043e \u0433\u043e\u0434\u0430\u043c, \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u0443\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f. <\/p>\n<h2>\u0421\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u0436\u0435\u0440\u0442\u0432\u0430\u043c\u0438 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0438 \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u043e\u043c<\/h2>\n<p>\u041a\u0430\u043a \u0438 \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u0433\u0438\u0431\u0435\u043b\u044c\u044e \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0438 \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e. \u041d\u0430\u0447\u043d\u0435\u043c \u043f\u043e\u043a\u0430 \u0431\u0435\u0437 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0441\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0435\u0441\u0442\u044c \u043b\u0438 \u0441\u0432\u044f\u0437\u044c \u0432 \u0446\u0435\u043b\u043e\u043c \u0438 \u043a\u0430\u043a \u043e\u043d\u0430 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c.<\/p>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c (\u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0430) \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e \u0436\u0435\u0440\u0442\u0432\u0430\u043c \u043f\u043e\u043b\u0438\u0446\u0438\u0438, \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0432 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u0441 2000 \u043f\u043e 2018 \u0433\u043e\u0434 (\u044d\u0442\u043e\u0442 \u0436\u0435 \u043f\u0435\u0440\u0438\u043e\u0434 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f).<\/p>\n<pre><code class=\"python\"># \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0448\u0442\u0430\u0442\u043e\u0432 df_fenc_crime_states = df_fenc.merge(df_state_names, how='inner', left_on='State', right_on='state_abbr') # \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u044b df_fenc_crime_states = df_fenc_crime_states.rename(columns={'Year': 'year', 'state_name_x': 'state_name'}) # \u043e\u0431\u0440\u0435\u0437\u0430\u0435\u043c \u043f\u0435\u0440\u0438\u043e\u0434 \u0434\u043e 2000-2018 df_fenc_crime_states = df_fenc_crime_states[df_fenc_crime_states['year'].between(2000, 2018)] # \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u0440\u0442\u0435\u0439 \u043f\u043e \u0433\u043e\u0434\u0430\u043c \u0438 \u0448\u0442\u0430\u0442\u0430\u043c df_fenc_crime_states = df_fenc_crime_states.groupby(['year', 'state_name'])['UOF'].count().reset_index() # \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c df_fenc_crime_states = df_fenc_crime_states.merge(df_crime_states[df_crime_states['year'].between(2000, 2018)], how='outer', on=['year', 'state_name']) # \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0431\u0435\u043b\u044b \u043d\u0443\u043b\u044f\u043c\u0438 df_fenc_crime_states.fillna({'UOF': 0}, inplace=True) # \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u044b\u0445 df_fenc_crime_states = df_fenc_crime_states.astype({'year': 'uint16', 'UOF': 'uint16', 'population': 'uint32', 'violent_crime': 'uint32'}) # \u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c df_fenc_crime_states = df_fenc_crime_states.sort_values(by=['year', 'state_name'])<\/code><\/pre>\n<details class=\"spoiler\">\n<summary>\u041d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435:<\/summary>\n<div class=\"spoiler__content\">\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<\/th>\n<th data-colwidth=\"71\" width=\"71\">\n<p>year<\/p>\n<\/th>\n<th data-colwidth=\"113\" width=\"113\">\n<p>state_name<\/p>\n<\/th>\n<th data-colwidth=\"64\" width=\"64\">\n<p>UOF<\/p>\n<\/th>\n<th data-colwidth=\"104\" width=\"104\">\n<p>state_abbr<\/p>\n<\/th>\n<th data-colwidth=\"110\" width=\"110\">\n<p>population<\/p>\n<\/th>\n<th>\n<p>violent_crime<\/p>\n<\/th>\n<th>\n<p>crime_promln<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>0<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2000<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>Alabama<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>7<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>AL<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>4447100<\/p>\n<\/td>\n<td>\n<p>21620<\/p>\n<\/td>\n<td>\n<p>4861.595197<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>1<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2000<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>Alaska<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>2<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>AK<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>626932<\/p>\n<\/td>\n<td>\n<p>3554<\/p>\n<\/td>\n<td>\n<p>5668.876369<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>2<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2000<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>Arizona<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>11<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>AZ<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>5130632<\/p>\n<\/td>\n<td>\n<p>27281<\/p>\n<\/td>\n<td>\n<p>5317.278651<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>3<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2000<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>Arkansas<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>4<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>AR<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>2673400<\/p>\n<\/td>\n<td>\n<p>11904<\/p>\n<\/td>\n<td>\n<p>4452.756789<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>4<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2000<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>California<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>97<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>CA<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>33871648<\/p>\n<\/td>\n<td>\n<p>210531<\/p>\n<\/td>\n<td>\n<p>6215.552311<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>&#8230;<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>&#8230;<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>&#8230;<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>&#8230;<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>&#8230;<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>&#8230;<\/p>\n<\/td>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>907<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2018<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>Virginia<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>18<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>VA<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>8517685<\/p>\n<\/td>\n<td>\n<p>17032<\/p>\n<\/td>\n<td>\n<p>1999.604353<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>908<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2018<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>Washington<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>24<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>WA<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>7535591<\/p>\n<\/td>\n<td>\n<p>23472<\/p>\n<\/td>\n<td>\n<p>3114.818732<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>909<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2018<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>West Virginia<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>7<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>WV<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>1805832<\/p>\n<\/td>\n<td>\n<p>5236<\/p>\n<\/td>\n<td>\n<p>2899.494527<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>910<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2018<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>Wisconsin<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>10<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>WI<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>5813568<\/p>\n<\/td>\n<td>\n<p>17176<\/p>\n<\/td>\n<td>\n<p>2954.467893<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"63\" width=\"63\">\n<p>911<\/p>\n<\/th>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2018<\/p>\n<\/td>\n<td data-colwidth=\"113\" width=\"113\">\n<p>Wyoming<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>4<\/p>\n<\/td>\n<td data-colwidth=\"104\" width=\"104\">\n<p>WY<\/p>\n<\/td>\n<td data-colwidth=\"110\" width=\"110\">\n<p>577737<\/p>\n<\/td>\n<td>\n<p>1226<\/p>\n<\/td>\n<td>\n<p>2122.072846<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/details>\n<p>\u041d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u0441\u0442\u043e\u043b\u0431\u0435\u0446 <strong>UOF <\/strong>(\u043e\u0442 &#171;<strong>Use Of Force<\/strong>&#187; &#8212; \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0438\u043b\u044b) \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043c\u0435\u0440\u0442\u0435\u0439 \u043e\u0442 \u0440\u0443\u043a \u0441\u043b\u0443\u0436\u0431 \u043f\u0440\u0430\u0432\u043e\u043f\u043e\u0440\u044f\u0434\u043a\u0430 (\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u044f \u0438\u043d\u043e\u0433\u0434\u0430 \u043a\u0440\u0430\u0442\u043a\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u044e &#171;\u043f\u043e\u043b\u0438\u0446\u0438\u0435\u0439&#187;, \u0445\u043e\u0442\u044f \u0437\u0434\u0435\u0441\u044c \u0435\u0441\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043b\u0443\u0436\u0431\u044b, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0424\u0411\u0420) \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0441\u0438\u043b\u044b.<\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0438 \u0434\u0430\u0442\u0430\u0444\u0440\u0435\u0439\u043c \u0441\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438:<\/p>\n<pre><code class=\"python\">df_fenc_crime_states_agg = df_fenc_crime_states.groupby(['state_name']).mean().loc[:, ['UOF', 'violent_crime']]<\/code><\/pre>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0438 \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 (\u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0448\u0442\u0430\u0442\u043e\u0432):<\/p>\n<pre><code class=\"python\">plt = df_fenc_crime_states_agg['violent_crime'].plot.bar(legend=True, figsize=(15,5)) plt.set_ylabel('\u0421\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439') plt2 = df_fenc_crime_states_agg['UOF'].plot(secondary_y=True, style='g', legend=True) plt2.set_ylabel('\u0421\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0436\u0435\u0440\u0442\u0432 \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438', rotation=90) plt2.set_xlabel('') plt.set_xlabel('') plt.set_xticklabels(df_fenc_crime_states_agg.index, rotation='vertical') plt<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/991\/26d\/daa\/99126ddaa3911ddd0ce5dc5315e9610e.png\" width=\"950\" height=\"399\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u044d\u0442\u0443 \u0441\u043e\u0432\u043c\u0435\u0449\u0435\u043d\u043d\u0443\u044e \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0430\u0440\u0443 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439:<\/p>\n<ul>\n<li>\n<p>\u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0433\u0438\u0431\u0435\u043b\u044c\u044e \u043e\u0442 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u0440\u043e\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f &#171;\u043d\u0435\u0432\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u043c \u0433\u043b\u0430\u0437\u043e\u043c&#187;: \u0437\u0435\u043b\u0435\u043d\u0430\u044f \u043a\u0440\u0438\u0432\u0430\u044f \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 &#171;\u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0435\u0442&#187; \u0441\u0442\u043e\u043b\u0431\u0438\u043a\u0438 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0432 \u0448\u0442\u0430\u0442\u0430\u0445 \u0441 \u0432\u044b\u0441\u043e\u043a\u0438\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 (\u0424\u043b\u043e\u0440\u0438\u0434\u0430, \u0418\u043b\u043b\u0438\u043d\u043e\u0439\u0441, \u041c\u0438\u0447\u0438\u0433\u0430\u043d, \u041d\u044c\u044e-\u0419\u043e\u0440\u043a, \u0422\u0435\u0445\u0430\u0441) \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0438\u0436\u0435 (\u0432 \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u043c \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438) \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441\u043e \u0448\u0442\u0430\u0442\u0430\u043c\u0438 \u0441 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u043c \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c\u0443 \u0440\u0430\u0441\u0441\u0435\u044f\u043d\u0438\u044f:<\/p>\n<pre><code class=\"python\">plt = df_fenc_crime_states_agg.plot.scatter(x='violent_crime', y='UOF') plt.set_xlabel('\u0421\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439') plt.set_ylabel('\u0421\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0436\u0435\u0440\u0442\u0432 \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438')<\/code><\/pre>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b6c\/3ce\/7cd\/b6c3ce7cd5e6f9a5615593ed53b8f5a8.png\" width=\"389\" height=\"273\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u043e, \u0447\u0442\u043e \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0436\u0435\u0440\u0442\u0432\u0430\u043c\u0438 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0438 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0443\u0440\u043e\u0432\u043d\u044f \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438. \u0423\u0441\u043b\u043e\u0432\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u0434\u043b\u044f \u0448\u0442\u0430\u0442\u043e\u0432 \u0441\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0434\u043e 75 \u0442\u044b\u0441. \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0440\u0430\u0441\u0442\u0435\u0442 \u043f\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043e\u0433\u043e, \u0447\u0435\u043c \u0434\u043b\u044f \u0448\u0442\u0430\u0442\u043e\u0432 \u0441\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0441\u0432\u044b\u0448\u0435 75 \u0442\u044b\u0441. \u0422\u0430\u043a\u0438\u0445 &#171;\u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u044b\u0445&#187; \u0448\u0442\u0430\u0442\u043e\u0432 \u0437\u0434\u0435\u0441\u044c, \u043a\u0430\u043a \u043c\u044b \u0432\u0438\u0434\u0438\u043c, \u0432\u0441\u0435\u0433\u043e \u0447\u0435\u0442\u044b\u0440\u0435. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0438\u043c &#171;\u0432 \u043b\u0438\u0446\u043e&#187;:<\/p>\n<pre><code class=\"python\">df_fenc_crime_states_agg[df_fenc_crime_states_agg['violent_crime'] &gt; 75000]<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<\/th>\n<th>\n<p>UOF<\/p>\n<\/th>\n<th>\n<p>violent_crime<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th>\n<p>state_name<\/p>\n<\/th>\n<th>\n<\/th>\n<th>\n<\/th>\n<\/tr>\n<tr>\n<th>\n<p>California<\/p>\n<\/th>\n<td>\n<p>133.263158<\/p>\n<\/td>\n<td>\n<p>181514.578947<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Florida<\/p>\n<\/th>\n<td>\n<p>54.578947<\/p>\n<\/td>\n<td>\n<p>110104.315789<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>New York<\/p>\n<\/th>\n<td>\n<p>19.157895<\/p>\n<\/td>\n<td>\n<p>81618.052632<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Texas<\/p>\n<\/th>\n<td>\n<p>64.368421<\/p>\n<\/td>\n<td>\n<p>117614.631579<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041d\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u044d\u0442\u043e \u0443\u0436\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u0430\u044f \u043d\u0430\u043c \u0447\u0435\u0442\u0432\u0435\u0440\u043a\u0430 &#171;\u0432\u0441\u0430\u0434\u043d\u0438\u043a\u043e\u0432 \u0410\u043f\u043e\u043a\u0430\u043b\u0438\u043f\u0441\u0438\u0441\u0430&#187;: \u041a\u0430\u043b\u0438\u0444\u043e\u0440\u043d\u0438\u044f, \u0424\u043b\u043e\u0440\u0438\u0434\u0430, \u0422\u0435\u0445\u0430\u0441 \u0438 \u041d\u044c\u044e-\u0419\u043e\u0440\u043a.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u043d\u0430\u0448\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e 3 \u043a\u0435\u0439\u0441\u0430\u043c:<\/p>\n<ol>\n<li>\n<p>\u0428\u0442\u0430\u0442\u044b \u0441\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0434\u043e 75 \u0442\u044b\u0441.<\/p>\n<\/li>\n<li>\n<p>\u0428\u0442\u0430\u0442\u044b \u0441\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0441\u0432\u044b\u0448\u0435 75 \u0442\u044b\u0441. (\u043d\u0430\u0448\u0430 &#171;\u0447\u0435\u0442\u0432\u0435\u0440\u043a\u0430&#187;)<\/p>\n<\/li>\n<li>\n<p>\u0412\u0441\u0435 \u0448\u0442\u0430\u0442\u044b<\/p>\n<\/li>\n<\/ol>\n<p>\u0414\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043a\u0435\u0439\u0441\u0430:<\/p>\n<pre><code class=\"python\">df_fenc_crime_states_agg[df_fenc_crime_states_agg['violent_crime'] &lt;= 75000].corr(method='pearson').at['UOF', 'violent_crime']<\/code><\/pre>\n<p>\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 <strong>0.839<\/strong>. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u043c\u0430\u044f \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0430, \u043d\u043e \u0434\u043e 0.9 \u043d\u0435 \u0434\u043e\u0445\u043e\u0434\u0438\u0442, \u0442\u0430\u043a \u043a\u0430\u043a \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u043b\u0438\u0446\u043e \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u0431\u0440\u043e\u0441 \u043f\u043e 47 \u0448\u0442\u0430\u0442\u0430\u043c.<\/p>\n<p>\u0414\u043b\u044f \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u043a\u0435\u0439\u0441\u0430:<\/p>\n<pre><code class=\"python\">df_fenc_crime_states_agg[df_fenc_crime_states_agg['violent_crime'] &gt; 75000].corr(method='pearson').at['UOF', 'violent_crime']<\/code><\/pre>\n<p>\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0443\u0436\u0435 <strong>0.999<\/strong> &#8212; \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044e! <\/p>\n<p>\u0414\u043b\u044f \u0442\u0440\u0435\u0442\u044c\u0435\u0433\u043e \u043a\u0435\u0439\u0441\u0430 (\u0432\u0441\u0435 \u0448\u0442\u0430\u0442\u044b):<\/p>\n<pre><code class=\"python\">df_fenc_crime_states_agg.corr(method='pearson').at['UOF', 'violent_crime']<\/code><\/pre>\n<p>\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0435\u0447\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c\u0438: <strong>0.935<\/strong>. \u041d\u043e \u044d\u0442\u043e\u0442 \u043e\u0431\u0449\u0438\u0439 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 \u0432\u0435\u0441\u044c\u043c\u0430 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044e.<\/p>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c \u043d\u0430\u0448 &#171;\u0438\u043d\u0434\u0435\u043a\u0441 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u044b \u0432 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u043e\u0432&#187; (\u044d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0443\u0441\u043b\u043e\u0432\u043d\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435). \u0420\u0430\u0437\u0434\u0435\u043b\u0438\u043c, \u043a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"python\">df_fenc_crime_states_agg['uof_by_crime'] = df_fenc_crime_states_agg['UOF'] \/ df_fenc_crime_states_agg['violent_crime'] plt = df_fenc_crime_states_agg.loc[:, 'uof_by_crime'].sort_values(ascending=False).plot.bar(figsize=(15,5)) plt.set_xlabel('') plt.set_ylabel('\u041e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043b-\u0432\u0430 \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043a \u043a\u043e\u043b-\u0432\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439')<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fc7\/db1\/06b\/fc7db106b8cfe1280f28804fda03e74a.png\" width=\"913\" height=\"409\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043d\u0430\u0448\u0438 \u043b\u0438\u0434\u0435\u0440\u044b \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0443\u0448\u043b\u0438 \u0432 \u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0443 \u0438 \u0434\u0430\u0436\u0435 \u0431\u043b\u0438\u0436\u0435 \u043a\u043e\u043d\u0446\u0443, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044f \u0442\u0435\u043c \u0441\u0430\u043c\u044b\u043c, \u0447\u0442\u043e \u0432 \u0441\u0430\u043c\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0448\u0442\u0430\u0442\u0430\u0445 \u043d\u0435 \u0441\u0430\u043c\u044b\u0435 &#171;\u043a\u0440\u043e\u0432\u0430\u0432\u044b\u0435&#187; \u043f\u043e\u043b\u0438\u0446\u0435\u0439\u0441\u043a\u0438\u0435 (\u043f\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044e \u043a \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c \u0438\u043b\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u0430\u043c). <\/p>\n<p><strong>\u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b:<\/strong><\/p>\n<blockquote>\n<p>1. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043f\u0440\u044f\u043c\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f (\u0441\u043f\u0430\u0441\u0438\u0431\u043e, \u043a\u044d\u043f!)<\/p>\n<p>2. \u0412 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u043b\u0438\u0434\u0435\u0440\u044b \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 &#8212; \u0441\u0430\u043c\u044b\u0435 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0448\u0442\u0430\u0442\u044b: \u041a\u0430\u043b\u0438\u0444\u043e\u0440\u043d\u0438\u044f, \u0424\u043b\u043e\u0440\u0438\u0434\u0430, \u0422\u0435\u0445\u0430\u0441 \u0438 \u041d\u044c\u044e-\u0419\u043e\u0440\u043a.<\/p>\n<p>2. \u0412 \u0443\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 (\u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f) \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432 \u044e\u0436\u043d\u044b\u0445 \u0448\u0442\u0430\u0442\u0430\u0445, \u0447\u0435\u043c \u0432 \u0441\u0435\u0432\u0435\u0440\u043d\u044b\u0445, \u0433\u0434\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0432\u0430 \u043d\u0438\u0437\u043a\u043e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0448\u0442\u0430\u0442\u0430 &#8212; \u0410\u043b\u044f\u0441\u043a\u0430 \u0438 \u041e\u043a\u0440\u0443\u0433 \u041a\u043e\u043b\u0443\u043c\u0431\u0438\u044f (\u0433. \u0412\u0430\u0448\u0438\u043d\u0433\u0442\u043e\u043d).<\/p>\n<p>3. \u041c\u0435\u0436\u0434\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0433\u0438\u0431\u0435\u043b\u044c\u044e \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u0430\u044f \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044f, \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0430\u044f \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c 0.93 \u043f\u043e \u0432\u0441\u0435\u043c \u0448\u0442\u0430\u0442\u0430\u043c. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0434\u043b\u044f \u043b\u0438\u0434\u0435\u0440\u043e\u0432 \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u0430 \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044f \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442 \u043f\u043e\u0447\u0442\u0438 \u0435\u0434\u0438\u043d\u0438\u0446\u044b (\u0442.\u0435. \u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u044f), \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u0448\u0442\u0430\u0442\u043e\u0432 &#8212; 0.84. <\/p>\n<\/blockquote>\n<h2>\u0412\u043b\u0438\u044f\u043d\u0438\u0435 \u0440\u0430\u0441\u044b \u043d\u0430 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0438 \u0433\u0438\u0431\u0435\u043b\u044c \u043e\u0442 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c<\/h2>\n<p>\u0423\u0431\u0435\u0434\u0438\u0432\u0448\u0438\u0441\u044c, \u0447\u0442\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0432 \u0446\u0435\u043b\u043e\u043c \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0433\u0438\u0431\u0435\u043b\u044c \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0441\u043e\u0432\u044b\u0439 \u0444\u0430\u043a\u0442\u043e\u0440 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043d\u0430 \u0447\u0442\u043e \u043e\u043d \u0432\u043b\u0438\u044f\u0435\u0442. \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u043b \u0432\u044b\u0448\u0435, \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0446\u0435\u043b\u0438 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0430\u0440\u0435\u0441\u0442\u0430\u043c, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d\u0438 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043b\u043d\u044b\u043c\u0438 \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445, \u043f\u043e\u043a\u0440\u044b\u0432\u0430\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0432\u0438\u0434\u044b \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0438 \u0432\u0441\u0435 \u0448\u0442\u0430\u0442\u044b \u0421\u0428\u0410. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u0448\u0442\u0430\u0442\u0435 \u0438 \u043d\u0438 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u0430\u043d\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u0440\u0438\u0440\u0430\u0432\u043d\u044f\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u043a \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439, \u043d\u043e \u044d\u0442\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438, \u0442\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435, \u0442\u0435\u0441\u043d\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u0430\u043d\u044b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u0437\u044b\u0441\u043a\u0430\u043d\u0438\u0439 \u0430\u0440\u0435\u0441\u0442\u044b \u043d\u0430\u043c \u0433\u043e\u0434\u044f\u0442\u0441\u044f. \u0418 \u043c\u044b \u0443\u0436\u0435 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438\u0441\u044c, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0430\u0440\u0435\u0441\u0442\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f (\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e, \u0433\u0440\u0430\u0431\u0435\u0436, \u0438\u0437\u043d\u0430\u0441\u0438\u043b\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u044f\u0433\u0447\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u043c\u0438), \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043f\u0440\u0438\u043d\u044f\u0442\u043e\u0439 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0435\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 CSV \u0438 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0448\u0442\u0430\u0442\u043e\u0432:<\/p>\n<pre><code class=\"python\">ARRESTS_FILE = ROOT_FOLDER + '\\\\arrests_by_state_race.csv' # \u0431\u0435\u0440\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0440\u0435\u0441\u0442\u044b \u0431\u0435\u043b\u044b\u0445 \u0438 \u0447\u0435\u0440\u043d\u044b\u0445 df_arrests = pd.read_csv(ARRESTS_FILE, sep=';', header=0, usecols=['data_year', 'state', 'white', 'black']) # \u0441\u0443\u043c\u043c\u0438\u0440\u0443\u0435\u043c \u0430\u0440\u0435\u0441\u0442\u044b \u0437\u0430 4 \u0432\u0438\u0434\u0430 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043f\u043e \u0433\u043e\u0434\u0430\u043c \u0438 \u0448\u0442\u0430\u0442\u0430\u043c df_arrests = df_arrests.groupby(['data_year', 'state']).sum().reset_index() # \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u044f \u0448\u0442\u0430\u0442\u043e\u0432 df_arrests = df_arrests.merge(df_state_names, left_on='state', right_on='state_abbr') # \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u0441\u0442\u043e\u043b\u0431\u0446\u044b df_arrests = df_arrests.rename(columns={'data_year': 'year'}).drop(columns='state_abbr') # \u043f\u043e\u0433\u043b\u044f\u0434\u0438\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c df_arrests.head()<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<\/th>\n<th>\n<p>year<\/p>\n<\/th>\n<th>\n<p>state<\/p>\n<\/th>\n<th>\n<p>black<\/p>\n<\/th>\n<th>\n<p>white<\/p>\n<\/th>\n<th>\n<p>state_name<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th>\n<p>0<\/p>\n<\/th>\n<td>\n<p>2000<\/p>\n<\/td>\n<td>\n<p>AK<\/p>\n<\/td>\n<td>\n<p>140<\/p>\n<\/td>\n<td>\n<p>613<\/p>\n<\/td>\n<td>\n<p>Alaska<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>1<\/p>\n<\/th>\n<td>\n<p>2001<\/p>\n<\/td>\n<td>\n<p>AK<\/p>\n<\/td>\n<td>\n<p>139<\/p>\n<\/td>\n<td>\n<p>718<\/p>\n<\/td>\n<td>\n<p>Alaska<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>2<\/p>\n<\/th>\n<td>\n<p>2002<\/p>\n<\/td>\n<td>\n<p>AK<\/p>\n<\/td>\n<td>\n<p>143<\/p>\n<\/td>\n<td>\n<p>677<\/p>\n<\/td>\n<td>\n<p>Alaska<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>3<\/p>\n<\/th>\n<td>\n<p>2003<\/p>\n<\/td>\n<td>\n<p>AK<\/p>\n<\/td>\n<td>\n<p>173<\/p>\n<\/td>\n<td>\n<p>801<\/p>\n<\/td>\n<td>\n<p>Alaska<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>4<\/p>\n<\/th>\n<td>\n<p>2004<\/p>\n<\/td>\n<td>\n<p>AK<\/p>\n<\/td>\n<td>\n<p>163<\/p>\n<\/td>\n<td>\n<p>765<\/p>\n<\/td>\n<td>\n<p>Alaska<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u0421\u0440\u0430\u0437\u0443 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u044b\u043c\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c\u0438:<\/p>\n<pre><code class=\"python\">df_arrests_agg = df_arrests.groupby(['state_name']).mean().drop(columns='year')<\/code><\/pre>\n<details class=\"spoiler\">\n<summary>\u0410\u0440\u0435\u0441\u0442\u044b \u0431\u0435\u043b\u044b\u0445 \u0438 \u0447\u0435\u0440\u043d\u044b\u0445 \u043f\u043e 51 \u0448\u0442\u0430\u0442\u0443 (\u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f)<\/summary>\n<div class=\"spoiler__content\">\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<\/th>\n<th>\n<p>black<\/p>\n<\/th>\n<th>\n<p>white<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th>\n<p>state_name<\/p>\n<\/th>\n<th>\n<\/th>\n<th>\n<\/th>\n<\/tr>\n<tr>\n<th>\n<p>Alabama<\/p>\n<\/th>\n<td>\n<p>2805.842105<\/p>\n<\/td>\n<td>\n<p>1757.315789<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Alaska<\/p>\n<\/th>\n<td>\n<p>221.894737<\/p>\n<\/td>\n<td>\n<p>844.157895<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Arizona<\/p>\n<\/th>\n<td>\n<p>1378.368421<\/p>\n<\/td>\n<td>\n<p>7007.157895<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Arkansas<\/p>\n<\/th>\n<td>\n<p>2387.894737<\/p>\n<\/td>\n<td>\n<p>2303.789474<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>California<\/p>\n<\/th>\n<td>\n<p>26668.368421<\/p>\n<\/td>\n<td>\n<p>87252.315789<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Colorado<\/p>\n<\/th>\n<td>\n<p>1268.210526<\/p>\n<\/td>\n<td>\n<p>5157.368421<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Connecticut<\/p>\n<\/th>\n<td>\n<p>2097.631579<\/p>\n<\/td>\n<td>\n<p>2981.210526<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Delaware<\/p>\n<\/th>\n<td>\n<p>1356.894737<\/p>\n<\/td>\n<td>\n<p>1048.578947<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>District of Columbia<\/p>\n<\/th>\n<td>\n<p>111.111111<\/p>\n<\/td>\n<td>\n<p>4.944444<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Florida<\/p>\n<\/th>\n<td>\n<p>12.000000<\/p>\n<\/td>\n<td>\n<p>7.000000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Georgia<\/p>\n<\/th>\n<td>\n<p>8262.842105<\/p>\n<\/td>\n<td>\n<p>3502.894737<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Hawaii<\/p>\n<\/th>\n<td>\n<p>81.052632<\/p>\n<\/td>\n<td>\n<p>368.736842<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Idaho<\/p>\n<\/th>\n<td>\n<p>44.000000<\/p>\n<\/td>\n<td>\n<p>1362.263158<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Illinois<\/p>\n<\/th>\n<td>\n<p>5699.842105<\/p>\n<\/td>\n<td>\n<p>1841.894737<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Indiana<\/p>\n<\/th>\n<td>\n<p>3553.368421<\/p>\n<\/td>\n<td>\n<p>5192.263158<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Iowa<\/p>\n<\/th>\n<td>\n<p>1104.421053<\/p>\n<\/td>\n<td>\n<p>3039.473684<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Kansas<\/p>\n<\/th>\n<td>\n<p>522.315789<\/p>\n<\/td>\n<td>\n<p>1501.315789<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Kentucky<\/p>\n<\/th>\n<td>\n<p>1476.894737<\/p>\n<\/td>\n<td>\n<p>1906.052632<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Louisiana<\/p>\n<\/th>\n<td>\n<p>5928.789474<\/p>\n<\/td>\n<td>\n<p>3414.263158<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Maine<\/p>\n<\/th>\n<td>\n<p>63.736842<\/p>\n<\/td>\n<td>\n<p>699.526316<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Maryland<\/p>\n<\/th>\n<td>\n<p>7189.105263<\/p>\n<\/td>\n<td>\n<p>4010.684211<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Massachusetts<\/p>\n<\/th>\n<td>\n<p>3407.157895<\/p>\n<\/td>\n<td>\n<p>7319.684211<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Michigan<\/p>\n<\/th>\n<td>\n<p>7628.157895<\/p>\n<\/td>\n<td>\n<p>6304.157895<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Minnesota<\/p>\n<\/th>\n<td>\n<p>2231.210526<\/p>\n<\/td>\n<td>\n<p>2645.736842<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Mississippi<\/p>\n<\/th>\n<td>\n<p>1462.210526<\/p>\n<\/td>\n<td>\n<p>474.368421<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Missouri<\/p>\n<\/th>\n<td>\n<p>5777.473684<\/p>\n<\/td>\n<td>\n<p>5703.368421<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Montana<\/p>\n<\/th>\n<td>\n<p>27.684211<\/p>\n<\/td>\n<td>\n<p>673.684211<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Nebraska<\/p>\n<\/th>\n<td>\n<p>591.421053<\/p>\n<\/td>\n<td>\n<p>1058.526316<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Nevada<\/p>\n<\/th>\n<td>\n<p>1956.421053<\/p>\n<\/td>\n<td>\n<p>3817.210526<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>New Hampshire<\/p>\n<\/th>\n<td>\n<p>68.368421<\/p>\n<\/td>\n<td>\n<p>640.789474<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>New Jersey<\/p>\n<\/th>\n<td>\n<p>6424.157895<\/p>\n<\/td>\n<td>\n<p>6043.789474<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>New Mexico<\/p>\n<\/th>\n<td>\n<p>234.421053<\/p>\n<\/td>\n<td>\n<p>2809.368421<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>New York<\/p>\n<\/th>\n<td>\n<p>8394.526316<\/p>\n<\/td>\n<td>\n<p>8734.947368<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>North Carolina<\/p>\n<\/th>\n<td>\n<p>10527.947368<\/p>\n<\/td>\n<td>\n<p>7412.947368<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>North Dakota<\/p>\n<\/th>\n<td>\n<p>61.263158<\/p>\n<\/td>\n<td>\n<p>277.052632<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Ohio<\/p>\n<\/th>\n<td>\n<p>4063.947368<\/p>\n<\/td>\n<td>\n<p>4071.368421<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Oklahoma<\/p>\n<\/th>\n<td>\n<p>1625.105263<\/p>\n<\/td>\n<td>\n<p>3353.000000<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Oregon<\/p>\n<\/th>\n<td>\n<p>445.105263<\/p>\n<\/td>\n<td>\n<p>3373.368421<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Pennsylvania<\/p>\n<\/th>\n<td>\n<p>11974.157895<\/p>\n<\/td>\n<td>\n<p>11039.473684<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Rhode Island<\/p>\n<\/th>\n<td>\n<p>275.684211<\/p>\n<\/td>\n<td>\n<p>699.210526<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>South Carolina<\/p>\n<\/th>\n<td>\n<p>5578.526316<\/p>\n<\/td>\n<td>\n<p>3615.421053<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>South Dakota<\/p>\n<\/th>\n<td>\n<p>67.105263<\/p>\n<\/td>\n<td>\n<p>349.368421<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Tennessee<\/p>\n<\/th>\n<td>\n<p>6799.894737<\/p>\n<\/td>\n<td>\n<p>8462.526316<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Texas<\/p>\n<\/th>\n<td>\n<p>10547.631579<\/p>\n<\/td>\n<td>\n<p>22062.684211<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Utah<\/p>\n<\/th>\n<td>\n<p>167.105263<\/p>\n<\/td>\n<td>\n<p>1748.894737<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Vermont<\/p>\n<\/th>\n<td>\n<p>43.526316<\/p>\n<\/td>\n<td>\n<p>439.210526<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Virginia<\/p>\n<\/th>\n<td>\n<p>4100.421053<\/p>\n<\/td>\n<td>\n<p>3060.263158<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Washington<\/p>\n<\/th>\n<td>\n<p>1688.947368<\/p>\n<\/td>\n<td>\n<p>6012.105263<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>West Virginia<\/p>\n<\/th>\n<td>\n<p>271.263158<\/p>\n<\/td>\n<td>\n<p>1528.315789<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Wisconsin<\/p>\n<\/th>\n<td>\n<p>3440.055556<\/p>\n<\/td>\n<td>\n<p>4107.722222<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>Wyoming<\/p>\n<\/th>\n<td>\n<p>27.263158<\/p>\n<\/td>\n<td>\n<p>506.947368<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/details>\n<p>\u041f\u0440\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0438 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u0438. \u0412 \u043e\u0434\u043d\u0438\u0445 \u0448\u0442\u0430\u0442\u0430\u0445 \u0430\u0440\u0435\u0441\u0442\u044b \u0438\u0441\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u0442\u044b\u0441\u044f\u0447\u0430\u043c\u0438 \u0438 \u0441\u043e\u0442\u043d\u044f\u043c\u0438, \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 &#8212; \u0434\u0435\u0441\u044f\u0442\u043a\u0430\u043c\u0438 \u0438 \u0435\u0434\u0438\u043d\u0438\u0446\u0430\u043c\u0438. \u0422\u0430\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e \u0424\u043b\u043e\u0440\u0438\u0434\u0435 &#8212; \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u0441\u0430\u043c\u044b\u0445 \u0433\u0443\u0441\u0442\u043e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0448\u0442\u0430\u0442\u043e\u0432 &#8212; \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e 19 \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u0432 \u0433\u043e\u0434 (12 \u0447\u0435\u0440\u043d\u044b\u0445 \u0438 7 \u0431\u0435\u043b\u044b\u0445). \u0417\u0434\u0435\u0441\u044c \u044f\u0432\u043d\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0442\u043e\u0447\u0435\u043a \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439; \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u044d\u0442\u043e:<\/p>\n<pre><code class=\"python\">df_arrests[df_arrests['state'] == 'FL']<\/code><\/pre>\n<p>\u0418 \u0432\u0438\u0434\u0438\u043c, \u0447\u0442\u043e, \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u043f\u043e \u0424\u043b\u043e\u0440\u0438\u0434\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430 2017 \u0433\u043e\u0434. \u0427\u0442\u043e \u0436, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u0438\u043c\u0435\u0435\u043c&#8230; \u041f\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u043c \u0448\u0442\u0430\u0442\u0430\u043c \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0435\u0441\u0442\u044c. \u041d\u043e \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043d\u0430 1-2 \u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u043c\u043e\u0436\u0435\u0442 \u0442\u0430\u043a\u0436\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c\u0441\u044f \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0439 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0434\u0433\u0440\u0443\u0437\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044e (\u0434\u043b\u044f \u043e\u0431\u0435\u0438\u0445 \u0440\u0430\u0441) \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c.<\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u044f \u0432\u0437\u044f\u043b \u0441 \u0441\u0430\u0439\u0442\u0430 \u0411\u044e\u0440\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0438 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f \u0421\u0428\u0410. \u0412 \u0420\u043e\u0441\u0441\u0438\u0438 \u0441\u0430\u0439\u0442 \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043d\u043e \u0432\u044b \u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435, \u043a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \ud83d\ude09 <a href=\"https:\/\/yadi.sk\/d\/5b3mbIvLP83boQ\" rel=\"noopener noreferrer nofollow\">\u0417\u0434\u0435\u0441\u044c <\/a>\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 CSV \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0438 \u0441 2010 \u043f\u043e 2019 \u0433. <\/p>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0441\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u043f\u043e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044e \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c \u0437\u0430 \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u043d\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u044b (\u0441 2000 \u043f\u043e 2009 \u0433.) \u043d\u0435\u0442. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0434\u043b\u044f \u044d\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u0441\u0443\u0437\u0438\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 \u0434\u043e 9 \u043b\u0435\u0442 (\u0441 2010 \u043f\u043e 2018 \u0433.).<\/p>\n<pre><code class=\"python\">POP_STATES_FILES = ROOT_FOLDER + '\\\\us_pop_states_race_2010-2019.csv' df_pop_states = pd.read_csv(POP_STATES_FILES, sep=';', header=0) # \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442, \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u043e\u043a\u043e\u043b\u0434\u043e\u0432\u0430\u0442\u044c )) df_pop_states = df_pop_states.melt('state_name', var_name='r_year', value_name='pop') df_pop_states['race'] = df_pop_states['r_year'].str[0] df_pop_states['year'] = df_pop_states['r_year'].str[2:].astype('uint16') df_pop_states.drop(columns='r_year', inplace=True) df_pop_states = df_pop_states[df_pop_states['year'].between(2000, 2018)] df_pop_states = df_pop_states.groupby(['state_name', 'year', 'race']).sum().unstack().reset_index() df_pop_states.columns = ['state_name', 'year', 'black_pop', 'white_pop']<\/code><\/pre>\n<details class=\"spoiler\">\n<summary>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0431\u0435\u043b\u044b\u0445 \u0438 \u0447\u0435\u0440\u043d\u044b\u0445 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c<\/summary>\n<div class=\"spoiler__content\">\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<\/th>\n<th data-colwidth=\"122\" width=\"122\">\n<p>state_name<\/p>\n<\/th>\n<th data-colwidth=\"118\" width=\"118\">\n<p>year<\/p>\n<\/th>\n<th data-colwidth=\"188\" width=\"188\">\n<p>black_pop<\/p>\n<\/th>\n<th>\n<p>white_pop<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>0<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>Alabama<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>2010<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>5044936<\/p>\n<\/td>\n<td>\n<p>13462236<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>1<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>Alabama<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>2011<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>5067912<\/p>\n<\/td>\n<td>\n<p>13477008<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>2<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>Alabama<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>2012<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>5102512<\/p>\n<\/td>\n<td>\n<p>13484256<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>3<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>Alabama<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>2013<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>5137360<\/p>\n<\/td>\n<td>\n<p>13488812<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>4<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>Alabama<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>2014<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>5162316<\/p>\n<\/td>\n<td>\n<p>13493432<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>&#8230;<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>&#8230;<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>&#8230;<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>&#8230;<\/p>\n<\/td>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>454<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>Wyoming<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>2014<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>31392<\/p>\n<\/td>\n<td>\n<p>2167008<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>455<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>Wyoming<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>2015<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>29568<\/p>\n<\/td>\n<td>\n<p>2177740<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>456<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>Wyoming<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>2016<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>29304<\/p>\n<\/td>\n<td>\n<p>2170700<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>457<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>Wyoming<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>29444<\/p>\n<\/td>\n<td>\n<p>2148128<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"72\" width=\"72\">\n<p>458<\/p>\n<\/th>\n<td data-colwidth=\"122\" width=\"122\">\n<p>Wyoming<\/p>\n<\/td>\n<td data-colwidth=\"118\" width=\"118\">\n<p>2018<\/p>\n<\/td>\n<td data-colwidth=\"188\" width=\"188\">\n<p>29604<\/p>\n<\/td>\n<td>\n<p>2139896<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/details>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u044d\u0442\u043e\u0442 \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u043a \u0430\u0440\u0435\u0441\u0442\u0430\u043c \u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0435\u043c \u0443\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u043e \u0430\u0440\u0435\u0441\u0442\u0430\u043c \u043d\u0430 1 \u043c\u043b\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u043a\u0430\u0436\u0434\u043e\u0439 \u0440\u0430\u0441\u044b:<\/p>\n<pre><code class=\"python\">df_arrests_2010_2018 = df_arrests.merge(df_pop_states, how='inner', on=['year', 'state_name']) df_arrests_2010_2018['white_arrests_promln'] = df_arrests_2010_2018['white'] * 1e6 \/ df_arrests_2010_2018['white_pop'] df_arrests_2010_2018['black_arrests_promln'] = df_arrests_2010_2018['black'] * 1e6 \/ df_arrests_2010_2018['black_pop']<\/code><\/pre>\n<p>\u0418 \u0442\u0430\u043a \u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u0441\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u044b\u043c\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u043c\u0438:<\/p>\n<pre><code class=\"python\">df_arrests_2010_2018_agg = df_arrests_2010_2018.groupby(['state_name', 'state']).mean().drop(columns='year').reset_index() df_arrests_2010_2018_agg = df_arrests_2010_2018_agg.set_index('state_name')<\/code><\/pre>\n<details class=\"spoiler\">\n<summary>\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0439 \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u043f\u043e \u0430\u0440\u0435\u0441\u0442\u0430\u043c \u0438 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 (\u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f)<\/summary>\n<div class=\"spoiler__content\">\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<\/th>\n<th data-colwidth=\"62\" width=\"62\">\n<p>state<\/p>\n<\/th>\n<th>\n<p>black<\/p>\n<\/th>\n<th>\n<p>white<\/p>\n<\/th>\n<th>\n<p>black_pop<\/p>\n<\/th>\n<th>\n<p>white_pop<\/p>\n<\/th>\n<th>\n<p>white_arrests_promln<\/p>\n<\/th>\n<th>\n<p>black_arrests_promln<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>state_name<\/p>\n<\/th>\n<th data-colwidth=\"62\" width=\"62\">\n<\/th>\n<th>\n<\/th>\n<th>\n<\/th>\n<th>\n<\/th>\n<th>\n<\/th>\n<th>\n<\/th>\n<th>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Alabama<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>1682.000000<\/p>\n<\/td>\n<td>\n<p>1342.000000<\/p>\n<\/td>\n<td>\n<p>5.152399e+06<\/p>\n<\/td>\n<td>\n<p>1.349158e+07<\/p>\n<\/td>\n<td>\n<p>99.424741<\/p>\n<\/td>\n<td>\n<p>324.055203<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Alaska<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>AK<\/p>\n<\/td>\n<td>\n<p>255.000000<\/p>\n<\/td>\n<td>\n<p>870.555556<\/p>\n<\/td>\n<td>\n<p>1.069489e+05<\/p>\n<\/td>\n<td>\n<p>1.957445e+06<\/p>\n<\/td>\n<td>\n<p>445.199704<\/p>\n<\/td>\n<td>\n<p>2390.243876<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Arizona<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>AZ<\/p>\n<\/td>\n<td>\n<p>1635.555556<\/p>\n<\/td>\n<td>\n<p>6852.000000<\/p>\n<\/td>\n<td>\n<p>1.279172e+06<\/p>\n<\/td>\n<td>\n<p>2.260403e+07<\/p>\n<\/td>\n<td>\n<p>302.923002<\/p>\n<\/td>\n<td>\n<p>1267.000192<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Arkansas<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>AR<\/p>\n<\/td>\n<td>\n<p>1960.666667<\/p>\n<\/td>\n<td>\n<p>2466.000000<\/p>\n<\/td>\n<td>\n<p>1.855574e+06<\/p>\n<\/td>\n<td>\n<p>9.465137e+06<\/p>\n<\/td>\n<td>\n<p>260.459917<\/p>\n<\/td>\n<td>\n<p>1055.854934<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>California<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>CA<\/p>\n<\/td>\n<td>\n<p>24381.666667<\/p>\n<\/td>\n<td>\n<p>79477.000000<\/p>\n<\/td>\n<td>\n<p>1.007921e+07<\/p>\n<\/td>\n<td>\n<p>1.128020e+08<\/p>\n<\/td>\n<td>\n<p>704.731408<\/p>\n<\/td>\n<td>\n<p>2419.234376<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Colorado<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>CO<\/p>\n<\/td>\n<td>\n<p>1377.222222<\/p>\n<\/td>\n<td>\n<p>5171.555556<\/p>\n<\/td>\n<td>\n<p>9.508173e+05<\/p>\n<\/td>\n<td>\n<p>1.882940e+07<\/p>\n<\/td>\n<td>\n<p>274.209456<\/p>\n<\/td>\n<td>\n<p>1439.257054<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Connecticut<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>CT<\/p>\n<\/td>\n<td>\n<p>1823.777778<\/p>\n<\/td>\n<td>\n<p>2295.333333<\/p>\n<\/td>\n<td>\n<p>1.643690e+06<\/p>\n<\/td>\n<td>\n<p>1.165681e+07<\/p>\n<\/td>\n<td>\n<p>196.712775<\/p>\n<\/td>\n<td>\n<p>1114.811569<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Delaware<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>DE<\/p>\n<\/td>\n<td>\n<p>1318.000000<\/p>\n<\/td>\n<td>\n<p>914.111111<\/p>\n<\/td>\n<td>\n<p>8.354622e+05<\/p>\n<\/td>\n<td>\n<p>2.635794e+06<\/p>\n<\/td>\n<td>\n<p>347.374980<\/p>\n<\/td>\n<td>\n<p>1582.395733<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>District of Columbia<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>139.222222<\/p>\n<\/td>\n<td>\n<p>4.777778<\/p>\n<\/td>\n<td>\n<p>1.288488e+06<\/p>\n<\/td>\n<td>\n<p>1.154416e+06<\/p>\n<\/td>\n<td>\n<p>4.112547<\/p>\n<\/td>\n<td>\n<p>108.101938<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Florida<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>FL<\/p>\n<\/td>\n<td>\n<p>12.000000<\/p>\n<\/td>\n<td>\n<p>7.000000<\/p>\n<\/td>\n<td>\n<p>1.415383e+07<\/p>\n<\/td>\n<td>\n<p>6.498292e+07<\/p>\n<\/td>\n<td>\n<p>0.107721<\/p>\n<\/td>\n<td>\n<p>0.847827<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Georgia<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>GA<\/p>\n<\/td>\n<td>\n<p>8137.222222<\/p>\n<\/td>\n<td>\n<p>4271.444444<\/p>\n<\/td>\n<td>\n<p>1.279378e+07<\/p>\n<\/td>\n<td>\n<p>2.500293e+07<\/p>\n<\/td>\n<td>\n<p>170.939250<\/p>\n<\/td>\n<td>\n<p>639.869143<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Hawaii<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>HI<\/p>\n<\/td>\n<td>\n<p>81.333333<\/p>\n<\/td>\n<td>\n<p>383.777778<\/p>\n<\/td>\n<td>\n<p>1.124298e+05<\/p>\n<\/td>\n<td>\n<p>1.453712e+06<\/p>\n<\/td>\n<td>\n<p>264.353469<\/p>\n<\/td>\n<td>\n<p>725.477589<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Idaho<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>ID<\/p>\n<\/td>\n<td>\n<p>51.888889<\/p>\n<\/td>\n<td>\n<p>1373.777778<\/p>\n<\/td>\n<td>\n<p>5.288222e+04<\/p>\n<\/td>\n<td>\n<p>6.154316e+06<\/p>\n<\/td>\n<td>\n<p>223.151878<\/p>\n<\/td>\n<td>\n<p>978.205026<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Illinois<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>IL<\/p>\n<\/td>\n<td>\n<p>4216.000000<\/p>\n<\/td>\n<td>\n<p>1284.222222<\/p>\n<\/td>\n<td>\n<p>7.554687e+06<\/p>\n<\/td>\n<td>\n<p>3.980927e+07<\/p>\n<\/td>\n<td>\n<p>32.199075<\/p>\n<\/td>\n<td>\n<p>557.493894<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Indiana<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>IN<\/p>\n<\/td>\n<td>\n<p>2924.444444<\/p>\n<\/td>\n<td>\n<p>5186.111111<\/p>\n<\/td>\n<td>\n<p>2.522917e+06<\/p>\n<\/td>\n<td>\n<p>2.267508e+07<\/p>\n<\/td>\n<td>\n<p>228.699515<\/p>\n<\/td>\n<td>\n<p>1155.168768<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Iowa<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>IA<\/p>\n<\/td>\n<td>\n<p>1181.000000<\/p>\n<\/td>\n<td>\n<p>2999.222222<\/p>\n<\/td>\n<td>\n<p>4.305640e+05<\/p>\n<\/td>\n<td>\n<p>1.141794e+07<\/p>\n<\/td>\n<td>\n<p>262.666753<\/p>\n<\/td>\n<td>\n<p>2760.038539<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Kansas<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>KS<\/p>\n<\/td>\n<td>\n<p>539.555556<\/p>\n<\/td>\n<td>\n<p>1512.111111<\/p>\n<\/td>\n<td>\n<p>7.116182e+05<\/p>\n<\/td>\n<td>\n<p>1.006714e+07<\/p>\n<\/td>\n<td>\n<p>150.232160<\/p>\n<\/td>\n<td>\n<p>758.851182<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Kentucky<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>KY<\/p>\n<\/td>\n<td>\n<p>1443.888889<\/p>\n<\/td>\n<td>\n<p>2173.666667<\/p>\n<\/td>\n<td>\n<p>1.442174e+06<\/p>\n<\/td>\n<td>\n<p>1.558094e+07<\/p>\n<\/td>\n<td>\n<p>139.526970<\/p>\n<\/td>\n<td>\n<p>1001.433470<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Louisiana<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>LA<\/p>\n<\/td>\n<td>\n<p>5917.000000<\/p>\n<\/td>\n<td>\n<p>3255.333333<\/p>\n<\/td>\n<td>\n<p>6.021228e+06<\/p>\n<\/td>\n<td>\n<p>1.174245e+07<\/p>\n<\/td>\n<td>\n<p>277.277874<\/p>\n<\/td>\n<td>\n<p>981.334817<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Maine<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>ME<\/p>\n<\/td>\n<td>\n<p>78.000000<\/p>\n<\/td>\n<td>\n<p>678.000000<\/p>\n<\/td>\n<td>\n<p>7.667733e+04<\/p>\n<\/td>\n<td>\n<p>5.059062e+06<\/p>\n<\/td>\n<td>\n<p>134.024032<\/p>\n<\/td>\n<td>\n<p>1019.061684<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Maryland<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>MD<\/p>\n<\/td>\n<td>\n<p>6460.444444<\/p>\n<\/td>\n<td>\n<p>3325.444444<\/p>\n<\/td>\n<td>\n<p>7.229037e+06<\/p>\n<\/td>\n<td>\n<p>1.426036e+07<\/p>\n<\/td>\n<td>\n<p>233.317775<\/p>\n<\/td>\n<td>\n<p>893.942720<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Massachusetts<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>MA<\/p>\n<\/td>\n<td>\n<p>3349.555556<\/p>\n<\/td>\n<td>\n<p>6895.111111<\/p>\n<\/td>\n<td>\n<p>2.249232e+06<\/p>\n<\/td>\n<td>\n<p>2.226671e+07<\/p>\n<\/td>\n<td>\n<p>309.745910<\/p>\n<\/td>\n<td>\n<p>1505.096888<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Michigan<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>MI<\/p>\n<\/td>\n<td>\n<p>6302.444444<\/p>\n<\/td>\n<td>\n<p>5647.444444<\/p>\n<\/td>\n<td>\n<p>5.645176e+06<\/p>\n<\/td>\n<td>\n<p>3.170670e+07<\/p>\n<\/td>\n<td>\n<p>178.111684<\/p>\n<\/td>\n<td>\n<p>1116.364030<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Minnesota<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>MN<\/p>\n<\/td>\n<td>\n<p>2570.000000<\/p>\n<\/td>\n<td>\n<p>2686.777778<\/p>\n<\/td>\n<td>\n<p>1.311818e+06<\/p>\n<\/td>\n<td>\n<p>1.867259e+07<\/p>\n<\/td>\n<td>\n<p>143.902882<\/p>\n<\/td>\n<td>\n<p>1986.464052<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Mississippi<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>MS<\/p>\n<\/td>\n<td>\n<p>1251.000000<\/p>\n<\/td>\n<td>\n<p>418.777778<\/p>\n<\/td>\n<td>\n<p>4.478208e+06<\/p>\n<\/td>\n<td>\n<p>7.122651e+06<\/p>\n<\/td>\n<td>\n<p>58.753686<\/p>\n<\/td>\n<td>\n<p>279.574565<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Missouri<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>MO<\/p>\n<\/td>\n<td>\n<p>4588.333333<\/p>\n<\/td>\n<td>\n<p>5146.111111<\/p>\n<\/td>\n<td>\n<p>2.854060e+06<\/p>\n<\/td>\n<td>\n<p>2.023871e+07<\/p>\n<\/td>\n<td>\n<p>254.292323<\/p>\n<\/td>\n<td>\n<p>1608.303611<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Montana<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>MT<\/p>\n<\/td>\n<td>\n<p>34.222222<\/p>\n<\/td>\n<td>\n<p>788.333333<\/p>\n<\/td>\n<td>\n<p>2.210444e+04<\/p>\n<\/td>\n<td>\n<p>3.660813e+06<\/p>\n<\/td>\n<td>\n<p>214.944902<\/p>\n<\/td>\n<td>\n<p>1525.795754<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Nebraska<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>NE<\/p>\n<\/td>\n<td>\n<p>618.888889<\/p>\n<\/td>\n<td>\n<p>1154.888889<\/p>\n<\/td>\n<td>\n<p>3.701520e+05<\/p>\n<\/td>\n<td>\n<p>6.709768e+06<\/p>\n<\/td>\n<td>\n<p>172.269972<\/p>\n<\/td>\n<td>\n<p>1687.725359<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Nevada<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>NV<\/p>\n<\/td>\n<td>\n<p>2450.000000<\/p>\n<\/td>\n<td>\n<p>4480.333333<\/p>\n<\/td>\n<td>\n<p>1.052192e+06<\/p>\n<\/td>\n<td>\n<p>8.647157e+06<\/p>\n<\/td>\n<td>\n<p>517.401564<\/p>\n<\/td>\n<td>\n<p>2316.374085<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>New Hampshire<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>NH<\/p>\n<\/td>\n<td>\n<p>89.777778<\/p>\n<\/td>\n<td>\n<p>784.777778<\/p>\n<\/td>\n<td>\n<p>7.873600e+04<\/p>\n<\/td>\n<td>\n<p>5.012056e+06<\/p>\n<\/td>\n<td>\n<p>156.580888<\/p>\n<\/td>\n<td>\n<p>1141.127571<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>New Jersey<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>NJ<\/p>\n<\/td>\n<td>\n<p>5429.555556<\/p>\n<\/td>\n<td>\n<p>4971.888889<\/p>\n<\/td>\n<td>\n<p>5.241910e+06<\/p>\n<\/td>\n<td>\n<p>2.595141e+07<\/p>\n<\/td>\n<td>\n<p>191.427955<\/p>\n<\/td>\n<td>\n<p>1037.217679<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>New Mexico<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>NM<\/p>\n<\/td>\n<td>\n<p>260.111111<\/p>\n<\/td>\n<td>\n<p>3136.000000<\/p>\n<\/td>\n<td>\n<p>2.053876e+05<\/p>\n<\/td>\n<td>\n<p>6.905377e+06<\/p>\n<\/td>\n<td>\n<p>454.129135<\/p>\n<\/td>\n<td>\n<p>1268.115549<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>New York<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>NY<\/p>\n<\/td>\n<td>\n<p>6035.777778<\/p>\n<\/td>\n<td>\n<p>6600.222222<\/p>\n<\/td>\n<td>\n<p>1.373077e+07<\/p>\n<\/td>\n<td>\n<p>5.534157e+07<\/p>\n<\/td>\n<td>\n<p>119.253616<\/p>\n<\/td>\n<td>\n<p>439.581451<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>North Carolina<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>NC<\/p>\n<\/td>\n<td>\n<p>9549.000000<\/p>\n<\/td>\n<td>\n<p>6759.333333<\/p>\n<\/td>\n<td>\n<p>8.804027e+06<\/p>\n<\/td>\n<td>\n<p>2.844145e+07<\/p>\n<\/td>\n<td>\n<p>238.320077<\/p>\n<\/td>\n<td>\n<p>1088.968561<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>North Dakota<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>ND<\/p>\n<\/td>\n<td>\n<p>100.666667<\/p>\n<\/td>\n<td>\n<p>386.222222<\/p>\n<\/td>\n<td>\n<p>6.583289e+04<\/p>\n<\/td>\n<td>\n<p>2.583206e+06<\/p>\n<\/td>\n<td>\n<p>149.190455<\/p>\n<\/td>\n<td>\n<p>1536.987272<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Ohio<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>OH<\/p>\n<\/td>\n<td>\n<p>3632.888889<\/p>\n<\/td>\n<td>\n<p>3733.333333<\/p>\n<\/td>\n<td>\n<p>5.879375e+06<\/p>\n<\/td>\n<td>\n<p>3.844592e+07<\/p>\n<\/td>\n<td>\n<p>97.107129<\/p>\n<\/td>\n<td>\n<p>617.699379<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Oklahoma<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>OK<\/p>\n<\/td>\n<td>\n<p>1577.333333<\/p>\n<\/td>\n<td>\n<p>3049.000000<\/p>\n<\/td>\n<td>\n<p>1.189604e+06<\/p>\n<\/td>\n<td>\n<p>1.160567e+07<\/p>\n<\/td>\n<td>\n<p>262.904593<\/p>\n<\/td>\n<td>\n<p>1326.463864<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Oregon<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>OR<\/p>\n<\/td>\n<td>\n<p>375.444444<\/p>\n<\/td>\n<td>\n<p>3125.000000<\/p>\n<\/td>\n<td>\n<p>3.292284e+05<\/p>\n<\/td>\n<td>\n<p>1.402225e+07<\/p>\n<\/td>\n<td>\n<p>222.819615<\/p>\n<\/td>\n<td>\n<p>1148.158169<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Pennsylvania<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>PA<\/p>\n<\/td>\n<td>\n<p>11227.000000<\/p>\n<\/td>\n<td>\n<p>10652.111111<\/p>\n<\/td>\n<td>\n<p>5.945100e+06<\/p>\n<\/td>\n<td>\n<p>4.232445e+07<\/p>\n<\/td>\n<td>\n<p>251.598838<\/p>\n<\/td>\n<td>\n<p>1893.415475<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Rhode Island<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>RI<\/p>\n<\/td>\n<td>\n<p>274.888889<\/p>\n<\/td>\n<td>\n<p>595.000000<\/p>\n<\/td>\n<td>\n<p>3.275551e+05<\/p>\n<\/td>\n<td>\n<p>3.592825e+06<\/p>\n<\/td>\n<td>\n<p>165.605635<\/p>\n<\/td>\n<td>\n<p>837.932682<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>South Carolina<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>SC<\/p>\n<\/td>\n<td>\n<p>4703.222222<\/p>\n<\/td>\n<td>\n<p>3094.111111<\/p>\n<\/td>\n<td>\n<p>5.365012e+06<\/p>\n<\/td>\n<td>\n<p>1.324712e+07<\/p>\n<\/td>\n<td>\n<p>234.287821<\/p>\n<\/td>\n<td>\n<p>877.892998<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>South Dakota<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>SD<\/p>\n<\/td>\n<td>\n<p>103.777778<\/p>\n<\/td>\n<td>\n<p>448.333333<\/p>\n<\/td>\n<td>\n<p>6.154533e+04<\/p>\n<\/td>\n<td>\n<p>2.903489e+06<\/p>\n<\/td>\n<td>\n<p>153.995184<\/p>\n<\/td>\n<td>\n<p>1641.137012<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Tennessee<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>TN<\/p>\n<\/td>\n<td>\n<p>7603.000000<\/p>\n<\/td>\n<td>\n<p>9068.666667<\/p>\n<\/td>\n<td>\n<p>4.460808e+06<\/p>\n<\/td>\n<td>\n<p>2.070126e+07<\/p>\n<\/td>\n<td>\n<p>438.486812<\/p>\n<\/td>\n<td>\n<p>1708.022356<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Texas<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>TX<\/p>\n<\/td>\n<td>\n<p>10821.666667<\/p>\n<\/td>\n<td>\n<p>21122.111111<\/p>\n<\/td>\n<td>\n<p>1.345661e+07<\/p>\n<\/td>\n<td>\n<p>8.628389e+07<\/p>\n<\/td>\n<td>\n<p>245.051258<\/p>\n<\/td>\n<td>\n<p>803.917061<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Utah<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>UT<\/p>\n<\/td>\n<td>\n<p>193.222222<\/p>\n<\/td>\n<td>\n<p>1797.333333<\/p>\n<\/td>\n<td>\n<p>1.558876e+05<\/p>\n<\/td>\n<td>\n<p>1.079659e+07<\/p>\n<\/td>\n<td>\n<p>166.431266<\/p>\n<\/td>\n<td>\n<p>1240.117890<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Vermont<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>VT<\/p>\n<\/td>\n<td>\n<p>54.222222<\/p>\n<\/td>\n<td>\n<p>520.555556<\/p>\n<\/td>\n<td>\n<p>3.017111e+04<\/p>\n<\/td>\n<td>\n<p>2.376143e+06<\/p>\n<\/td>\n<td>\n<p>219.129918<\/p>\n<\/td>\n<td>\n<p>1785.111547<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Virginia<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>VA<\/p>\n<\/td>\n<td>\n<p>4059.555556<\/p>\n<\/td>\n<td>\n<p>3071.222222<\/p>\n<\/td>\n<td>\n<p>6.544598e+06<\/p>\n<\/td>\n<td>\n<p>2.340732e+07<\/p>\n<\/td>\n<td>\n<p>131.178648<\/p>\n<\/td>\n<td>\n<p>620.504151<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Washington<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>WA<\/p>\n<\/td>\n<td>\n<p>1791.777778<\/p>\n<\/td>\n<td>\n<p>5870.444444<\/p>\n<\/td>\n<td>\n<p>1.147000e+06<\/p>\n<\/td>\n<td>\n<p>2.289368e+07<\/p>\n<\/td>\n<td>\n<p>256.632241<\/p>\n<\/td>\n<td>\n<p>1566.862244<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>West Virginia<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>WV<\/p>\n<\/td>\n<td>\n<p>294.111111<\/p>\n<\/td>\n<td>\n<p>1648.666667<\/p>\n<\/td>\n<td>\n<p>2.597649e+05<\/p>\n<\/td>\n<td>\n<p>6.908718e+06<\/p>\n<\/td>\n<td>\n<p>238.517207<\/p>\n<\/td>\n<td>\n<p>1132.059057<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Wisconsin<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>WI<\/p>\n<\/td>\n<td>\n<p>3525.333333<\/p>\n<\/td>\n<td>\n<p>4046.222222<\/p>\n<\/td>\n<td>\n<p>1.516534e+06<\/p>\n<\/td>\n<td>\n<p>2.018658e+07<\/p>\n<\/td>\n<td>\n<p>200.441064<\/p>\n<\/td>\n<td>\n<p>2325.622492<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"119\" width=\"119\">\n<p>Wyoming<\/p>\n<\/th>\n<td data-colwidth=\"62\" width=\"62\">\n<p>WY<\/p>\n<\/td>\n<td>\n<p>28.777778<\/p>\n<\/td>\n<td>\n<p>464.555556<\/p>\n<\/td>\n<td>\n<p>2.856356e+04<\/p>\n<\/td>\n<td>\n<p>2.151349e+06<\/p>\n<\/td>\n<td>\n<p>216.004646<\/p>\n<\/td>\n<td>\n<p>1005.725503<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/details>\n<p>\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043c \u0432 \u0432\u0438\u0434\u0435 \u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c:<\/p>\n<ol>\n<li>\n<p>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445<\/p>\n<pre><code class=\"python\">plt = df_arrests_2010_2018_agg.loc[:, ['white', 'black']].sort_index(ascending=False).plot.barh(color=['g', 'olive'], figsize=(10, 20)) plt.set_ylabel('') plt.set_xlabel('\u0421\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0430\u0440\u0435\u0441\u0442\u043e\u0432 (2010-2018 \u0433\u0433.)')<\/code><\/pre>\n<\/li>\n<\/ol>\n<details class=\"spoiler\">\n<summary>\u0414\u043b\u0438\u043d\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/760\/225\/a2e\/760225a2edf8f71541e76d73704d79a8.png\" width=\"678\" height=\"1132\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<p>2. \u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u0443\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445:<\/p>\n<pre><code class=\"python\">plt = df_arrests_2010_2018_agg.loc[:, ['white_arrests_promln', 'black_arrests_promln']].sort_index(ascending=False).plot.barh(color=['g', 'olive'], figsize=(10, 20)) plt.set_ylabel('') plt.set_xlabel('\u0421\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u043e\u0435 \u043a\u043e\u043b-\u0432\u043e \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u043d\u0430 1 \u043c\u043b\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0440\u0430\u0441\u044b (2010-2018 \u0433\u0433.)')<\/code><\/pre>\n<details class=\"spoiler\">\n<summary>\u0415\u0449\u0435 \u043e\u0434\u043d\u0430 \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2de\/6a3\/449\/2de6a3449cf62d01284ce2e9524c0b84.png\" width=\"678\" height=\"1132\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0438 \u0432\u0437\u0433\u043b\u044f\u0434\u0435 \u043d\u0430 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435?<\/p>\n<p>\u0412\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f &#8212; \u044d\u0442\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u0434\u043b\u044f \u043e\u0431\u0435\u0438\u0445 \u0440\u0430\u0441.<\/p>\n<p>\u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u0445 \u0431\u0435\u043b\u044b\u0445 \u0430\u0440\u0435\u0441\u0442\u043e\u0432\u044b\u0432\u0430\u044e\u0442 <em>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e <\/em>\u0447\u0430\u0449\u0435. \u0413\u043e\u0432\u043e\u0440\u044e &#171;\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e&#187;, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0432\u043e \u0432\u0441\u0435\u0445 \u0448\u0442\u0430\u0442\u0430\u0445 (\u0441\u043c. \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0421\u0435\u0432\u0435\u0440\u043d\u0430\u044f \u041a\u0430\u0440\u043e\u043b\u0438\u043d\u0430, \u0414\u0436\u043e\u0440\u0434\u0436\u0438\u044f, \u041b\u0443\u0438\u0437\u0438\u0430\u043d\u0430 \u0438 \u0434\u0440.) \u0410 \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0448\u0442\u0430\u0442\u043e\u0432 \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0437\u0430\u043c\u0435\u0442\u043d\u0430 (\u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c, \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u041a\u0430\u043b\u0438\u0444\u043e\u0440\u043d\u0438\u0438, \u0422\u0435\u0445\u0430\u0441\u0430, \u041a\u043e\u043b\u043e\u0440\u0430\u0434\u043e, \u041c\u0430\u0441\u0441\u0430\u0447\u0443\u0441\u0435\u0442\u0441\u0430 \u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0434\u0440\u0443\u0433\u0438\u0445 \u0448\u0442\u0430\u0442\u043e\u0432.<\/p>\n<p>\u0412-\u0442\u0440\u0435\u0442\u044c\u0438\u0445, \u0432 \u0443\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u0445 (\u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0440\u0430\u0441\u044b) \u0432\u043e <em>\u0432\u0441\u0435\u0445 <\/em>\u0448\u0442\u0430\u0442\u0430\u0445 \u0447\u0435\u0440\u043d\u044b\u0445 \u0430\u0440\u0435\u0441\u0442\u043e\u0432\u044b\u0432\u0430\u044e\u0442 <em>\u0433\u043e\u0440\u0430\u0437\u0434\u043e <\/em>\u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0431\u0435\u043b\u044b\u0445.<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043d\u0430\u0448\u0438 \u0432\u044b\u0432\u043e\u0434\u044b \u0446\u0438\u0444\u0440\u0430\u043c\u0438.<\/p>\n<p>\u0420\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u0440\u0435\u0434\u043d\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u0431\u0435\u043b\u044b\u0445 \u0438 \u0447\u0435\u0440\u043d\u044b\u0445:<\/p>\n<pre><code class=\"python\">df_arrests_2010_2018['white'].mean() \/ df_arrests_2010_2018['black'].mean()<\/code><\/pre>\n<p>&#8212; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c <strong>1.56<\/strong>. \u0422.\u0435. \u0431\u0435\u043b\u044b\u0445 \u0437\u0430 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u0435 9 \u043b\u0435\u0442 \u0430\u0440\u0435\u0441\u0442\u043e\u0432\u044b\u0432\u0430\u043b\u0438 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c <strong>\u0432 \u043f\u043e\u043b\u0442\u043e\u0440\u0430 \u0440\u0430\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0435<\/strong>, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0445.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0442\u043e \u0436\u0435 \u0432 \u0443\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044f\u0445:<\/p>\n<pre><code class=\"python\">df_arrests_2010_2018['white_arrests_promln'].mean() \/ df_arrests_2010_2018['black_arrests_promln'].mean()<\/code><\/pre>\n<p>&#8212; \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c <strong>0.183<\/strong>. \u0422.\u0435. \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0430\u0440\u0435\u0441\u0442\u0430 \u0447\u0435\u0440\u043d\u044b\u0445 <strong>\u0432 5.5 \u0440\u0430\u0437 \u0432\u044b\u0448\u0435<\/strong>, \u0447\u0435\u043c \u0431\u0435\u043b\u044b\u0445.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0430 \u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0441\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u043d\u044b\u0445 \u0435\u0449\u0435 \u0440\u0430\u0437 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u043f\u043e \u0432\u0441\u0435\u043c \u0448\u0442\u0430\u0442\u0430\u043c \u0421\u0428\u0410.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a \u0440\u0430\u0441\u0430 \u0438 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u0441 \u0433\u0438\u0431\u0435\u043b\u044c\u044e \u043e\u0442 \u0440\u0443\u043a \u0441\u0442\u0440\u0430\u0436\u0435\u0439 \u0437\u0430\u043a\u043e\u043d\u0430, \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0430\u0440\u0435\u0441\u0442\u0430\u043c \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e \u0436\u0435\u0440\u0442\u0432\u0430\u043c \u043f\u043e\u043b\u0438\u0446\u0438\u0438.<\/p>\n<p>\u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0436\u0435\u0440\u0442\u0432\u0430\u043c \u0441 \u0440\u0430\u0441\u043e\u0432\u044b\u043c \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u043c \u0441 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u043e\u0439 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c:<\/p>\n<pre><code class=\"python\">df_fenc_agg_states1 = df_fenc.merge(df_state_names, how='inner', left_on='State', right_on='state_abbr') df_fenc_agg_states1.fillna(0, inplace=True) df_fenc_agg_states1 = df_fenc_agg_states1.rename(columns={'state_name_x': 'state_name', 'Year': 'year'}) df_fenc_agg_states1 = df_fenc_agg_states1.loc[df_fenc_agg_states1['year'].between(2000, 2018), ['year', 'Race', 'state_name', 'UOF']] df_fenc_agg_states1 = df_fenc_agg_states1.groupby(['year', 'state_name', 'Race'])['UOF'].count().unstack().reset_index() df_fenc_agg_states1 = df_fenc_agg_states1.rename(columns={'Black': 'black_uof', 'White': 'white_uof'}) df_fenc_agg_states1 = df_fenc_agg_states1.fillna(0).astype({'black_uof': 'uint32', 'white_uof': 'uint32'})<\/code><\/pre>\n<details class=\"spoiler\">\n<summary>\u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u0430\u0442\u0430\u0441\u0435\u0442<\/summary>\n<div class=\"spoiler__content\">\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<\/th>\n<th>\n<p>year<\/p>\n<\/th>\n<th>\n<p>state_name<\/p>\n<\/th>\n<th>\n<p>black_uof<\/p>\n<\/th>\n<th>\n<p>white_uof<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th>\n<p>0<\/p>\n<\/th>\n<td>\n<p>2000<\/p>\n<\/td>\n<td>\n<p>Alabama<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>1<\/p>\n<\/th>\n<td>\n<p>2000<\/p>\n<\/td>\n<td>\n<p>Alaska<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>2<\/p>\n<\/th>\n<td>\n<p>2000<\/p>\n<\/td>\n<td>\n<p>Arizona<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>11<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>3<\/p>\n<\/th>\n<td>\n<p>2000<\/p>\n<\/td>\n<td>\n<p>Arkansas<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>4<\/p>\n<\/th>\n<td>\n<p>2000<\/p>\n<\/td>\n<td>\n<p>California<\/p>\n<\/td>\n<td>\n<p>19<\/p>\n<\/td>\n<td>\n<p>78<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>&#8230;<\/p>\n<\/th>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>907<\/p>\n<\/th>\n<td>\n<p>2018<\/p>\n<\/td>\n<td>\n<p>Virginia<\/p>\n<\/td>\n<td>\n<p>11<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>908<\/p>\n<\/th>\n<td>\n<p>2018<\/p>\n<\/td>\n<td>\n<p>Washington<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>24<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>909<\/p>\n<\/th>\n<td>\n<p>2018<\/p>\n<\/td>\n<td>\n<p>West Virginia<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>910<\/p>\n<\/th>\n<td>\n<p>2018<\/p>\n<\/td>\n<td>\n<p>Wisconsin<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>911<\/p>\n<\/th>\n<td>\n<p>2018<\/p>\n<\/td>\n<td>\n<p>Wyoming<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/details>\n<p>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435:<\/p>\n<pre><code class=\"python\">df_arrests_fenc = df_arrests.merge(df_fenc_agg_states1, on=['state_name', 'year']) df_arrests_fenc = df_arrests_fenc.rename(columns={'white': 'white_arrests', 'black': 'black_arrests'})<\/code><\/pre>\n<details class=\"spoiler\">\n<summary>\u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430 2017 \u0433\u043e\u0434<\/summary>\n<div class=\"spoiler__content\">\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<\/th>\n<th data-colwidth=\"67\" width=\"67\">\n<p>year<\/p>\n<\/th>\n<th data-colwidth=\"64\" width=\"64\">\n<p>state<\/p>\n<\/th>\n<th data-colwidth=\"100\" width=\"100\">\n<p>black_arrests<\/p>\n<\/th>\n<th>\n<p>white_arrests<\/p>\n<\/th>\n<th data-colwidth=\"131\" width=\"131\">\n<p>state_name<\/p>\n<\/th>\n<th>\n<p>black_uof<\/p>\n<\/th>\n<th>\n<p>white_uof<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>15<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>AK<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>266<\/p>\n<\/td>\n<td>\n<p>859<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Alaska<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>34<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>AL<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>3098<\/p>\n<\/td>\n<td>\n<p>2509<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Alabama<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<td>\n<p>17<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>53<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>AR<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>2092<\/p>\n<\/td>\n<td>\n<p>2674<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Arkansas<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>72<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>AZ<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>2431<\/p>\n<\/td>\n<td>\n<p>7829<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Arizona<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>43<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>91<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>CA<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>24937<\/p>\n<\/td>\n<td>\n<p>80367<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>California<\/p>\n<\/td>\n<td>\n<p>25<\/p>\n<\/td>\n<td>\n<p>137<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>110<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>CO<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>1781<\/p>\n<\/td>\n<td>\n<p>6079<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Colorado<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>27<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>127<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>CT<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>1687<\/p>\n<\/td>\n<td>\n<p>2114<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Connecticut<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>140<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>DE<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>1198<\/p>\n<\/td>\n<td>\n<p>782<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Delaware<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>159<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>GA<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>7747<\/p>\n<\/td>\n<td>\n<p>4171<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Georgia<\/p>\n<\/td>\n<td>\n<p>15<\/p>\n<\/td>\n<td>\n<p>21<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>173<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>HI<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>88<\/p>\n<\/td>\n<td>\n<p>419<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Hawaii<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>192<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>IA<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>1400<\/p>\n<\/td>\n<td>\n<p>3524<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Iowa<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>210<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>ID<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>61<\/p>\n<\/td>\n<td>\n<p>1423<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Idaho<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>229<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>IL<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>2847<\/p>\n<\/td>\n<td>\n<p>947<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Illinois<\/p>\n<\/td>\n<td>\n<p>13<\/p>\n<\/td>\n<td>\n<p>11<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>248<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>IN<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>3565<\/p>\n<\/td>\n<td>\n<p>4300<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Indiana<\/p>\n<\/td>\n<td>\n<p>9<\/p>\n<\/td>\n<td>\n<p>13<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>267<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>KS<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>585<\/p>\n<\/td>\n<td>\n<p>1651<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Kansas<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>286<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>KY<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>1481<\/p>\n<\/td>\n<td>\n<p>2035<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Kentucky<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>18<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>305<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>LA<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>5875<\/p>\n<\/td>\n<td>\n<p>2284<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Louisiana<\/p>\n<\/td>\n<td>\n<p>13<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>324<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>MA<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>2953<\/p>\n<\/td>\n<td>\n<p>6089<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Massachusetts<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>343<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>MD<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>6662<\/p>\n<\/td>\n<td>\n<p>3371<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Maryland<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>361<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>ME<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>89<\/p>\n<\/td>\n<td>\n<p>675<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Maine<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>380<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>MI<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>6149<\/p>\n<\/td>\n<td>\n<p>5459<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Michigan<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>399<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>MN<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>2513<\/p>\n<\/td>\n<td>\n<p>2681<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Minnesota<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>418<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>MO<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>4571<\/p>\n<\/td>\n<td>\n<p>5007<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Missouri<\/p>\n<\/td>\n<td>\n<p>13<\/p>\n<\/td>\n<td>\n<p>20<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>437<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>MS<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>1266<\/p>\n<\/td>\n<td>\n<p>409<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Mississippi<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>455<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>MT<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>50<\/p>\n<\/td>\n<td>\n<p>915<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Montana<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>474<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>NC<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>8177<\/p>\n<\/td>\n<td>\n<p>5576<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>North Carolina<\/p>\n<\/td>\n<td>\n<p>9<\/p>\n<\/td>\n<td>\n<p>14<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>501<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>NE<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>80<\/p>\n<\/td>\n<td>\n<p>578<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Nebraska<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>516<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>NH<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>113<\/p>\n<\/td>\n<td>\n<p>817<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>New Hampshire<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>535<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>NJ<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>4859<\/p>\n<\/td>\n<td>\n<p>4136<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>New Jersey<\/p>\n<\/td>\n<td>\n<p>9<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>554<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>NM<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>205<\/p>\n<\/td>\n<td>\n<p>2094<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>New Mexico<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>20<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>573<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>NV<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>2695<\/p>\n<\/td>\n<td>\n<p>4657<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Nevada<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>12<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>592<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>NY<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>5923<\/p>\n<\/td>\n<td>\n<p>6633<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>New York<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<td>\n<p>9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>611<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>OH<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>4472<\/p>\n<\/td>\n<td>\n<p>3882<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Ohio<\/p>\n<\/td>\n<td>\n<p>11<\/p>\n<\/td>\n<td>\n<p>23<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>630<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>OK<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>1638<\/p>\n<\/td>\n<td>\n<p>2872<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Oklahoma<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>20<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>649<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>OR<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>453<\/p>\n<\/td>\n<td>\n<p>3222<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Oregon<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<td>\n<p>9<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>668<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>PA<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>10123<\/p>\n<\/td>\n<td>\n<p>10191<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Pennsylvania<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<td>\n<p>17<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>681<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>RI<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>315<\/p>\n<\/td>\n<td>\n<p>633<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Rhode Island<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>700<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>SC<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>4645<\/p>\n<\/td>\n<td>\n<p>2964<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>South Carolina<\/p>\n<\/td>\n<td>\n<p>3<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>712<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>SD<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>124<\/p>\n<\/td>\n<td>\n<p>537<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>South Dakota<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>2<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>731<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>TN<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>6654<\/p>\n<\/td>\n<td>\n<p>8496<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Tennessee<\/p>\n<\/td>\n<td>\n<p>4<\/p>\n<\/td>\n<td>\n<p>24<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>750<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>TX<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>11493<\/p>\n<\/td>\n<td>\n<p>20911<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Texas<\/p>\n<\/td>\n<td>\n<p>18<\/p>\n<\/td>\n<td>\n<p>56<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>769<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>UT<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>199<\/p>\n<\/td>\n<td>\n<p>1964<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Utah<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>5<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>788<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>VA<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>4283<\/p>\n<\/td>\n<td>\n<p>3247<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Virginia<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<td>\n<p>17<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>804<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>VT<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>75<\/p>\n<\/td>\n<td>\n<p>626<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Vermont<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>823<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>WA<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>1890<\/p>\n<\/td>\n<td>\n<p>5804<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Washington<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<td>\n<p>27<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>842<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>WV<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>350<\/p>\n<\/td>\n<td>\n<p>1705<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>West Virginia<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>10<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>856<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>WY<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>36<\/p>\n<\/td>\n<td>\n<p>549<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Wyoming<\/p>\n<\/td>\n<td>\n<p>0<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>872<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>DC<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>135<\/p>\n<\/td>\n<td>\n<p>8<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>District of Columbia<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<td>\n<p>1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>890<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>WI<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>3604<\/p>\n<\/td>\n<td>\n<p>4106<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Wisconsin<\/p>\n<\/td>\n<td>\n<p>6<\/p>\n<\/td>\n<td>\n<p>15<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"83\" width=\"83\">\n<p>892<\/p>\n<\/th>\n<td data-colwidth=\"67\" width=\"67\">\n<p>2017<\/p>\n<\/td>\n<td data-colwidth=\"64\" width=\"64\">\n<p>FL<\/p>\n<\/td>\n<td data-colwidth=\"100\" width=\"100\">\n<p>12<\/p>\n<\/td>\n<td>\n<p>7<\/p>\n<\/td>\n<td data-colwidth=\"131\" width=\"131\">\n<p>Florida<\/p>\n<\/td>\n<td>\n<p>19<\/p>\n<\/td>\n<td>\n<p>43<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/details>\n<p>\u041e\u041a, \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u0430\u0440\u0435\u0441\u0442\u0430\u043c\u0438 \u0438 \u0436\u0435\u0440\u0442\u0432\u0430\u043c\u0438 \u043f\u043e\u043b\u0438\u0446\u0438\u0438, \u043a\u0430\u043a \u043c\u044b \u0443\u0436\u0435 \u0434\u0435\u043b\u0430\u043b\u0438 \u0440\u0430\u043d\u044c\u0448\u0435:<\/p>\n<pre><code class=\"python\">df_corr = df_arrests_fenc.loc[:, ['white_arrests', 'black_arrests', 'white_uof', 'black_uof']].corr(method='pearson').iloc[:2, 2:] df_corr.style.background_gradient(cmap='PuBu')<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th>\n<\/th>\n<th>\n<p>white_uof<\/p>\n<\/th>\n<th>\n<p>black_uof<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th>\n<p>white_arrests<\/p>\n<\/th>\n<td>\n<p><strong>0.872766<\/strong><\/p>\n<\/td>\n<td>\n<p>0.622167<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th>\n<p>black_arrests<\/p>\n<\/th>\n<td>\n<p>0.702350<\/p>\n<\/td>\n<td>\n<p><strong>0.766852<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0432\u043d\u043e\u0432\u044c \u043d\u0435\u043f\u043b\u043e\u0445\u0443\u044e \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044e: <strong>0.87<\/strong> \u0434\u043b\u044f \u0431\u0435\u043b\u044b\u0445 \u0438 <strong>0.77<\/strong> \u0434\u043b\u044f \u0447\u0435\u0440\u043d\u044b\u0445! \u0417\u0434\u0435\u0441\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u044d\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0447\u0435\u043d\u044c \u0431\u043b\u0438\u0437\u043a\u0438 \u043a \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430\u043c \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u0438, \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c \u043d\u0430\u043c\u0438 \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 (\u0442\u0430\u043c \u0431\u044b\u043b\u043e <strong>0.88<\/strong> \u0434\u043b\u044f \u0431\u0435\u043b\u044b\u0445 \u0438 <strong>0.72<\/strong> \u0434\u043b\u044f \u0447\u0435\u0440\u043d\u044b\u0445).<\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043d\u0430\u0448 &#171;\u0438\u043d\u0434\u0435\u043a\u0441 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u044b \u0432 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u043e\u0432&#187;, \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0432 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u0440\u0430\u0441\u0435:<\/p>\n<pre><code class=\"python\">df_arrests_fenc['white_uof_by_arr'] = df_arrests_fenc['white_uof'] \/ df_arrests_fenc['white_arrests'] df_arrests_fenc['black_uof_by_arr'] = df_arrests_fenc['black_uof'] \/ df_arrests_fenc['black_arrests'] df_arrests_fenc.replace([np.inf, -np.inf], np.nan, inplace=True) df_arrests_fenc.fillna({'white_uof_by_arr': 0, 'black_uof_by_arr': 0}, inplace=True)<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435, \u043a\u0430\u043a \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u044d\u0442\u043e\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c (\u0432\u043e\u0437\u044c\u043c\u0435\u043c 2018 \u0433\u043e\u0434):<\/p>\n<pre><code class=\"python\">plt = df_arrests_fenc.loc[df_arrests_fenc['year'] == 2018, ['state_name', 'white_uof_by_arr', 'black_uof_by_arr']].sort_values(by='state_name', ascending=False).plot.barh(x='state_name', color=['g', 'olive'], figsize=(10, 20)) plt.set_ylabel('') plt.set_xlabel('\u041e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043b-\u0432\u0430 \u0436\u0435\u0440\u0442\u0432 \u043a \u043a\u043e\u043b-\u0432\u0443 \u0430\u0440\u0435\u0441\u0442\u043e\u0432 (\u0437\u0430 2018 \u0433.)')<\/code><\/pre>\n<details class=\"spoiler\">\n<summary>\u041e\u043f\u044f\u0442\u044c \u0434\u043b\u0438\u043d\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430<\/summary>\n<div class=\"spoiler__content\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c0a\/140\/a1d\/c0a140a1dc654f42fa522e21b6b06881.png\" width=\"678\" height=\"1132\"><figcaption><\/figcaption><\/figure>\n<\/p>\n<\/div>\n<\/details>\n<p>\u0412\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0448\u0442\u0430\u0442\u043e\u0432 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0434\u043b\u044f \u0431\u0435\u043b\u044b\u0445 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0434\u043b\u044f \u0447\u0435\u0440\u043d\u044b\u0445, \u0445\u043e\u0442\u044f \u0435\u0441\u0442\u044c \u0438 \u044f\u0440\u043a\u0438\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f: \u042e\u0442\u0430, \u0417\u0430\u043f\u0430\u0434\u043d\u0430\u044f \u0412\u0438\u0440\u0434\u0436\u0438\u043d\u0438\u044f, \u041a\u0430\u043d\u0437\u0430\u0441, \u0410\u0439\u0434\u0430\u0445\u043e \u0438 \u041e\u043a\u0440\u0443\u0433 \u041a\u043e\u043b\u0443\u043c\u0431\u0438\u044f.<\/p>\n<p>\u041d\u043e \u0441\u0440\u0430\u0432\u043d\u0438\u043c \u0441\u0440\u0435\u0434\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u043e \u0432\u0441\u0435\u043c \u0448\u0442\u0430\u0442\u0430\u043c:<\/p>\n<pre><code class=\"python\">plt = df_arrests_fenc.loc[:, ['white_uof_by_arr', 'black_uof_by_arr']].mean().plot.bar(color=['g', 'olive']) plt.set_ylabel('\u041e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043b-\u0432\u0430 \u0436\u0435\u0440\u0442\u0432 \u043a \u043a\u043e\u043b-\u0432\u0443 \u0430\u0440\u0435\u0441\u0442\u043e\u0432') plt.set_xticklabels(['\u0411\u0435\u043b\u044b\u0435', '\u0427\u0435\u0440\u043d\u044b\u0435'], rotation=0)<\/code><\/pre>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/353\/b98\/0d7\/353b980d7472c6c502a42e03cf8a989f.png\" width=\"398\" height=\"252\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0434\u043b\u044f \u0431\u0435\u043b\u044b\u0445 <strong>\u0432\u044b\u0448\u0435 \u0432 2.5 \u0440\u0430\u0437\u0430<\/strong>. \u0422\u043e \u0435\u0441\u0442\u044c, \u0435\u0441\u043b\u0438 \u044d\u0442\u043e\u0442 \u0438\u043d\u0434\u0435\u043a\u0441 \u043e \u0447\u0435\u043c-\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442, \u0442\u043e \u0431\u0435\u043b\u044b\u0439 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a \u0438\u043c\u0435\u0435\u0442 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u0432 2.5 \u0440\u0430\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u044c \u0441\u043c\u0435\u0440\u0442\u044c \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0439 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044d\u0442\u043e\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u0430\u0440\u044c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c: \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0410\u0439\u0434\u0430\u0445\u043e \u0447\u0435\u0440\u043d\u044b\u0439 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a \u043f\u043e\u0433\u0438\u0431\u0430\u0435\u0442 \u0432 2 \u0440\u0430\u0437\u0430 \u0447\u0430\u0449\u0435 \u0431\u0435\u043b\u043e\u0433\u043e, \u0430 \u0432 \u041c\u0438\u0441\u0441\u0438\u0441\u0438\u043f\u0438 &#8212; \u0432 4 \u0440\u0430\u0437\u0430 \u0440\u0435\u0436\u0435.<\/p>\n<p>\u0427\u0442\u043e \u0436\u0435, \u044d\u0442\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0434\u043e\u0448\u043b\u043e \u043a \u043a\u043e\u043d\u0446\u0443. \u041f\u043e\u0440\u0430 \u0440\u0435\u0437\u044e\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c.<\/p>\n<h2>\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<ol>\n<li>\n<p>\u041f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0432 \u0448\u0442\u0430\u0442\u0430\u0445 \u043f\u0440\u044f\u043c\u043e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f. \u041d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 &#171;\u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u044b\u0435&#187; \u0448\u0442\u0430\u0442\u044b, \u043e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u043f\u0440\u0438\u0432\u044b\u043a\u043b\u0438 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0445\u0440\u043e\u043d\u0438\u043a\u0438 \u0438\u043b\u0438 \u0445\u0443\u0434\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0444\u0438\u043b\u044c\u043c\u044b, &#8212; \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0430\u043c\u044b\u0435 \u0433\u0443\u0441\u0442\u043e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u043d\u044b\u0435. \u041f\u0440\u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0438 \u0443\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 (\u043d\u0430 \u0434\u0443\u0448\u0443 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f) \u043b\u0438\u0434\u0435\u0440\u0430\u043c\u0438 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0435 \u0448\u0442\u0430\u0442\u044b &#8212; \u0410\u043b\u044f\u0441\u043a\u0430, \u041e\u043a\u0440\u0443\u0433 \u041a\u043e\u043b\u0443\u043c\u0431\u0438\u044f (\u0441\u043e \u0441\u0442\u043e\u043b\u0438\u0446\u0435\u0439 \u0421\u0428\u0410) \u0438 \u041d\u044c\u044e-\u041c\u0435\u043a\u0441\u0438\u043a\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u044e\u0436\u043d\u044b\u0435 \u0448\u0442\u0430\u0442\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 (\u0432 \u0443\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438), \u0447\u0435\u043c \u0441\u0435\u0432\u0435\u0440\u043d\u044b\u0435 \u0448\u0442\u0430\u0442\u044b.<\/p>\n<\/li>\n<li>\n<p>\u0412 \u0421\u0428\u0410 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0438 \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0437\u043d\u0438\u0446\u0443 \u0441\u0440\u0435\u0434\u0438 \u0431\u0435\u043b\u044b\u0445 \u0438 \u0441\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u043d\u044b\u0445 \u0432 \u0443\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438: \u0447\u0435\u0440\u043d\u044b\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u044e \u0432 3 \u0440\u0430\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0438 \u0432 5 \u0440\u0430\u0437 \u0447\u0430\u0449\u0435 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u043f\u043e\u0434 \u0430\u0440\u0435\u0441\u0442, \u0447\u0435\u043c \u0431\u0435\u043b\u044b\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0427\u0435\u0440\u043d\u044b\u0435 \u043f\u043e\u0433\u0438\u0431\u0430\u044e\u0442 \u0432 2.5 \u0440\u0430\u0437\u0430 \u0447\u0430\u0449\u0435 \u043e\u0442 \u0440\u0443\u043a \u0441\u043b\u0443\u0436\u0431 \u043f\u0440\u0430\u0432\u043e\u043f\u043e\u0440\u044f\u0434\u043a\u0430, \u0447\u0435\u043c \u0431\u0435\u043b\u044b\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0413\u0438\u0431\u0435\u043b\u044c \u043e\u0442 \u0440\u0443\u043a \u0441\u043b\u0443\u0436\u0431 \u043f\u0440\u0430\u0432\u043e\u043f\u043e\u0440\u044f\u0434\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u0440\u043e\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u043c\u0443\u044e \u0441\u0432\u044f\u0437\u044c \u0441 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e: \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u043c\u0435\u0440\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438\u0441\u0445\u043e\u0434\u043e\u0432 \u043e\u0442 \u0432\u0441\u0442\u0440\u0435\u0447 \u0441 \u043f\u043e\u043b\u0438\u0446\u0438\u0435\u0439. \u042d\u0442\u0430 \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0446\u0435\u043b\u043e\u043c \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c \u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0440\u0430\u0441\u044b, \u0445\u043e\u0442\u044f \u043e\u043d\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0432\u044b\u0448\u0435 \u0434\u043b\u044f \u0431\u0435\u043b\u044b\u0445. \u042d\u0442\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0438 \u0440\u0430\u0437\u043d\u0438\u0446\u0435\u0439 \u0432 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043a \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0438 \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0441\u0430\u043c\u0438: \u0431\u0435\u043b\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u0438 \u0438\u043c\u0435\u044e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u043e\u043b\u0435\u0435 \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442\u044c \u0441\u043c\u0435\u0440\u0442\u044c, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0435.<\/p>\n<\/li>\n<\/ol>\n<p>\u0425\u043e\u0447\u0443 \u043d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u0432\u044b\u0440\u0430\u0437\u0438\u0442\u044c \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0438\u043c \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u044f\u043c, \u0434\u0430\u0432\u0448\u0438\u043c \u0446\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438 \u0441\u043e\u0432\u0435\u0442\u044b \ud83d\ude42<\/p>\n<p><strong>PS. <\/strong>\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439, \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0432 \u0421\u0428\u0410 \u0438 \u0435\u0435 \u0441\u0432\u044f\u0437\u044c \u0441 \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c\u044e. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043a\u043e\u043b\u0434\u0443\u0435\u043c \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c \u043d\u0430 \u043f\u043e\u0447\u0432\u0435 \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u0438 \u0438\u043d\u043e\u0439 \u043d\u0435\u0442\u0435\u0440\u043f\u0438\u043c\u043e\u0441\u0442\u0438, \u0430 \u043f\u043e\u0442\u043e\u043c \u043f\u043e\u0433\u043b\u044f\u0434\u0438\u043c \u043d\u0430 \u043a\u043e\u043d\u0444\u043b\u0438\u043a\u0442\u044b \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u043b\u0438\u0446\u0438\u0435\u0439 \u0438 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u0435\u043c \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0438 \u0433\u0438\u0431\u0435\u043b\u0438 \u043f\u043e\u043b\u0438\u0446\u0435\u0439\u0441\u043a\u0438\u0445 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u043e\u0431\u044f\u0437\u0430\u043d\u043d\u043e\u0441\u0442\u0435\u0439. \u0415\u0441\u043b\u0438 \u044d\u0442\u0430 \u0442\u0435\u043c\u0430 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430, \u043f\u0440\u043e\u0448\u0443 \u0434\u0430\u0442\u044c \u0437\u043d\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445!<\/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\/518202\/\"> https:\/\/habr.com\/ru\/post\/518202\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/518202\/\">\n<p>\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u043d\u0430\u0448\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435, \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u043e\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432 \u0421\u0428\u0410 \u0441\u043e \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u043e\u0439 \u043f\u043e\u043b\u0438\u0446\u0435\u0439\u0441\u043a\u0438\u0445 \u0438 \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0441\u0440\u0435\u0434\u0438 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0431\u0435\u043b\u043e\u0439 \u0438 \u0447\u0435\u0440\u043d\u043e\u0439 (\u0430\u0444\u0440\u043e\u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u043e\u0439) \u0440\u0430\u0441. \u041d\u0430\u043f\u043e\u043c\u043d\u044e, \u0447\u0442\u043e \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/517776\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043b \u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0441\u044b\u043b\u043a\u0430\u0445 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u0435\u0433\u043e \u0446\u0435\u043b\u044f\u0445 \u0438 \u043f\u0440\u0438\u043d\u044f\u0442\u044b\u0445 \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430\u0445 \/ \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u044f\u0445; \u0430 \u0432\u043e <a href=\"https:\/\/habr.com\/ru\/post\/517782\/\" rel=\"noopener noreferrer nofollow\">\u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438<\/a> \u0431\u044b\u043b\u0430 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u044c\u044e, \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0433\u0438\u0431\u0435\u043b\u044c\u044e \u043e\u0442 \u0440\u0443\u043a \u0441\u043b\u0443\u0436\u0431 \u043f\u0440\u0430\u0432\u043e\u043f\u043e\u0440\u044f\u0434\u043a\u0430.<\/p>\n<p>\u041d\u0430\u043f\u043e\u043c\u043d\u044e \u0442\u0430\u043a\u0436\u0435 \u0438 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439 (\u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u0441 2000 \u043f\u043e 2018 \u0433\u043e\u0434):<\/p>\n<ul>\n<li>\n<p>\u0412 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c (\u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u043c) \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 \u0431\u0435\u043b\u044b\u0445 \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0431\u043e\u043b\u044c\u0448\u0435, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0445. <\/p>\n<\/li>\n<li>\n<p>\u0412 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043f\u043e\u0433\u0438\u0431\u0430\u0435\u0442 5.9 \u043d\u0430 1 \u043c\u043b\u043d. \u0447\u0435\u0440\u043d\u044b\u0445 \u0438 2.3 \u043d\u0430 1 \u043c\u043b\u043d. \u0431\u0435\u043b\u044b\u0445 (\u0447\u0435\u0440\u043d\u044b\u0445 \u0432 2.6 \u0440\u0430\u0437 \u0431\u043e\u043b\u044c\u0448\u0435).<\/p>\n<\/li>\n<li>\n<p>\u0413\u043e\u0434\u043e\u0432\u043e\u0439 \u0440\u0430\u0437\u0431\u0440\u043e\u0441 (\u043e\u0442\u043a\u043b\u043e\u043d\u0435\u043d\u0438\u0435) \u043f\u043e \u0433\u0438\u0431\u0435\u043b\u0438 \u0447\u0435\u0440\u043d\u043e\u043a\u043e\u0436\u0438\u0445 \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043f\u043e\u0447\u0442\u0438 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0432\u044b\u0448\u0435, \u0447\u0435\u043c \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0431\u0435\u043b\u044b\u043c \u0436\u0435\u0440\u0442\u0432\u0430\u043c. <\/p>\n<\/li>\n<li>\n<p>\u0416\u0435\u0440\u0442\u0432\u044b \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0441\u0440\u0435\u0434\u0438 \u0431\u0435\u043b\u044b\u0445 \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0443\u0442 (\u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u043d\u0430 0.1 &#8212; 0.2 \u0432 \u0433\u043e\u0434), \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0436\u0435\u0440\u0442\u0432\u044b \u0441\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u043d\u044b\u0445 \u0432\u0435\u0440\u043d\u0443\u043b\u0438\u0441\u044c \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c 2009 \u0433. \u043f\u043e\u0441\u043b\u0435 \u043f\u0438\u043a\u0430 \u0432 2011 &#8212; 2013 \u0433\u0433.<\/p>\n<\/li>\n<li>\n<p>\u0411\u0435\u043b\u044b\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u044e\u0442 \u0432 \u0434\u0432\u0430 \u0440\u0430\u0437\u0430 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0435, \u0432 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438, \u043d\u043e \u0432 3 \u0440\u0430\u0437\u0430 \u043c\u0435\u043d\u044c\u0448\u0435 \u0432 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0438 (\u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0441\u0432\u043e\u0435\u0439 \u0440\u0430\u0441\u044b).<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0440\u0435\u0434\u0438 \u0431\u0435\u043b\u044b\u0445 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043c\u043e\u043d\u043e\u0442\u043e\u043d\u043d\u043e \u0440\u0430\u0441\u0442\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0438 \u0432\u0441\u0435\u0433\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0430 (\u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0432 2 \u0440\u0430\u0437\u0430 \u0437\u0430 18 \u043b\u0435\u0442). \u041f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u043d\u044b\u0445 \u0442\u0430\u043a\u0436\u0435 \u0440\u0430\u0441\u0442\u0435\u0442, \u043d\u043e \u0441\u043a\u0430\u0447\u043a\u043e\u043e\u0431\u0440\u0430\u0437\u043d\u043e. \u0417\u0430 \u0432\u0435\u0441\u044c \u043f\u0435\u0440\u0438\u043e\u0434 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u0441\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u043d\u044b\u0445 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0442\u0430\u043a\u0436\u0435 \u0432 2 \u0440\u0430\u0437\u0430 (\u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e \u0431\u0435\u043b\u044b\u043c).<\/p>\n<\/li>\n<li>\n<p>\u0413\u0438\u0431\u0435\u043b\u044c \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438&nbsp;\u0441\u0432\u044f\u0437\u0430\u043d\u0430&nbsp;\u0441 \u043a\u0440\u0438\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e (\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439). \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u044d\u0442\u0430 \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044f \u043d\u0435\u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u0430 \u043f\u043e \u0440\u0430\u0441\u0430\u043c: \u0434\u043b\u044f \u0431\u0435\u043b\u044b\u0445 \u043e\u043d\u0430 \u0431\u043b\u0438\u0437\u043a\u0430 \u043a \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e\u0439, \u0434\u043b\u044f \u0447\u0435\u0440\u043d\u044b\u0445 \u0434\u0430\u043b\u0435\u043a\u0430 \u043e\u0442 \u0442\u0430\u043a\u043e\u0432\u043e\u0439.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043c\u0435\u0440\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043b\u0443\u0447\u0430\u0438 \u043f\u0440\u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0445 \u0441 \u043f\u043e\u043b\u0438\u0446\u0438\u0435\u0439 \u0440\u0430\u0441\u0442\u0443\u0442 &#171;\u0432 \u043e\u0442\u0432\u0435\u0442&#187; \u043d\u0430 \u0440\u043e\u0441\u0442 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438, \u0441 \u043b\u0430\u0433\u043e\u043c \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u0435\u0442 (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432\u0438\u0434\u043d\u043e \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u0441\u0440\u0435\u0434\u0438 \u0447\u0435\u0440\u043d\u044b\u0445).<\/p>\n<\/li>\n<li>\n<p>\u0411\u0435\u043b\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0447\u0430\u0449\u0435 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442 \u0441\u043c\u0435\u0440\u0442\u044c \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u043a\u0430\u043a \u044f \u043e\u0431\u0435\u0449\u0430\u043b, \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0448\u0442\u0430\u0442\u0430\u043c \u0421\u0428\u0410, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043b\u0438\u0431\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c, \u043b\u0438\u0431\u043e \u043e\u043f\u0440\u043e\u0432\u0435\u0440\u0433\u043d\u0443\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u044b, \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0432 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0430\u0445 \u0432\u0441\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u044b. <\/p>\n<p>\u041e\u0434\u043d\u0430\u043a\u043e, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043c\u044b \u0437\u0430\u0439\u043c\u0435\u043c\u0441\u044f \u044d\u0442\u043e\u0439 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0435\u0439, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0448\u0430\u0433 \u043d\u0430\u0437\u0430\u0434 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u0432\u043c\u0435\u0441\u0442\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 &#171;\u0432\u0441\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f&#187; (All Offenses) \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0432\u0437\u044f\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u043c\u044b\u0435 &#171;\u0437\u043b\u043e\u0434\u0435\u0439\u0441\u043a\u0438\u0435&#187;. \u041c\u043d\u043e\u0433\u0438\u0435 \u0438\u0437 \u043c\u043e\u0438\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445, \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0435\u0435, \u0442\u0430\u043a \u043a\u0430\u043a &#171;\u0432\u0441\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f&#187; \u0432\u043a\u043b\u044e\u0447\u0430\u044e\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u0435\u043b\u043a\u043e\u0435 \u0432\u043e\u0440\u043e\u0432\u0441\u0442\u0432\u043e \u0438\u043b\u0438 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044e \u043d\u0430\u0440\u043a\u043e\u0442\u0438\u043a\u0430\u043c\u0438, \u0447\u0442\u043e (\u043f\u043e \u043b\u043e\u0433\u0438\u043a\u0435) \u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435\u043c, \u043f\u0440\u043e\u0432\u043e\u0446\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u043f\u043e\u043b\u0438\u0446\u0435\u0439\u0441\u043a\u0438\u0445 \u043d\u0430 \u0441\u0442\u0440\u0435\u043b\u044c\u0431\u0443. \u0425\u043e\u0442\u044f \u044f \u043b\u0438\u0447\u043d\u043e \u043d\u0435 \u043c\u043e\u0433\u0443 \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u0441 \u044d\u0442\u0438\u043c \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0442\u044c\u0441\u044f \u0438 \u0441\u0447\u0438\u0442\u0430\u044e, \u0447\u0442\u043e \u043b\u044e\u0431\u043e\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u043b\u0435\u0447\u044c \u0437\u0430 \u0441\u043e\u0431\u043e\u0439 \u043f\u043e\u0432\u044b\u0448\u0435\u043d\u043d\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e\u043b\u0438\u0446\u0438\u0438 (\u043a\u043e\u0442\u043e\u0440\u043e\u0435, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u043c\u043e\u0436\u0435\u0442 \u043a\u043e\u043d\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0435 \u043b\u0443\u0447\u0448\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c)&#8230; \u0432\u0441\u0435 \u0436\u0435, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u044f\u0432\u0438\u043c \u043b\u044e\u0431\u043e\u043f\u044b\u0442\u0441\u0442\u0432\u043e \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c!<\/p>\n<h2>\u041d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u0438 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u0430 \u0432\u043c\u0435\u0441\u0442\u043e &#171;\u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439&#187;<\/h2>\n<p>\u0418\u0442\u0430\u043a, \u0432 \u0442\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0433\u0434\u0435 \u043c\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u0434\u0430\u0442\u0430\u0441\u0435\u0442 \u043f\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c, \u0432\u043c\u0435\u0441\u0442\u043e \u0441\u0442\u0440\u043e\u043a\u0438<\/p>\n<pre><code class=\"python\">df_crimes1 = df_crimes1.loc[df_crimes1['Offense'] == 'All Offenses']<\/code><\/pre>\n<p>\u043f\u0438\u0448\u0435\u043c:<\/p>\n<pre><code class=\"python\">df_crimes1 = df_crimes1.loc[df_crimes1['Offense'].str.contains('Assault|Murder')]<\/code><\/pre>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043d\u0430\u0448 \u043d\u043e\u0432\u044b\u0439 \u0444\u0438\u043b\u044c\u0442\u0440 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u0438\u0434\u044b \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439, <strong>\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0445 \u0441 \u043d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u0435\u043c (Assault) \u0438 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e\u043c (Murder)<\/strong>. \u0417\u0430\u043c\u0435\u0447\u0443 \u0441\u0440\u0430\u0437\u0443, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043d\u0435\u043f\u0440\u0435\u0434\u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e \u0438 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0441\u0430\u043c\u043e\u0437\u0430\u0449\u0438\u0442\u044b, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0443\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e\u0435 \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e. <\/p>\n<p>\u0412\u0435\u0441\u044c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u0434 \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439. \u0412\u043e\u0442 \u0447\u0442\u043e \u0434\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u0447\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u0423\u0434\u0435\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0440\u0430\u0441\u044b:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0438\u0434\u0438\u043c, \u0447\u0442\u043e \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043c\u0435\u043d\u044c\u0448\u0435, \u043d\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043f\u043e\u0447\u0442\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c (\u043f\u043e \u0432\u0441\u0435\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c).<\/p>\n<p>\u0421\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0436\u0435\u0440\u0442\u0432\u0430\u043c\u0438 \u043f\u043e\u043b\u0438\u0446\u0438\u0438:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u043c\u0430\u0442\u0440\u0438\u0446\u0430:<\/p>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"180\" width=\"180\">\n<\/th>\n<th data-colwidth=\"150\" width=\"150\">\n<p>White_promln_cr<\/p>\n<\/th>\n<th>\n<p>White_promln_uof<\/p>\n<\/th>\n<th>\n<p>Black_promln_cr<\/p>\n<\/th>\n<th>\n<p>Black_promln_uof<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"180\" width=\"180\">\n<p>White_promln_cr<\/p>\n<\/th>\n<td data-colwidth=\"150\" width=\"150\">\n<p>1.000000<\/p>\n<\/td>\n<td>\n<p>0.684757<\/p>\n<\/td>\n<td>\n<p>0.986622<\/p>\n<\/td>\n<td>\n<p>0.729674<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"180\" width=\"180\">\n<p>White_promln_uof<\/p>\n<\/th>\n<td data-colwidth=\"150\" width=\"150\">\n<p><strong>0.684757<\/strong><\/p>\n<\/td>\n<td>\n<p>1.000000<\/p>\n<\/td>\n<td>\n<p>0.614132<\/p>\n<\/td>\n<td>\n<p>0.795486<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"180\" width=\"180\">\n<p>Black_promln_cr<\/p>\n<\/th>\n<td data-colwidth=\"150\" width=\"150\">\n<p>0.986622<\/p>\n<\/td>\n<td>\n<p>0.614132<\/p>\n<\/td>\n<td>\n<p>1.000000<\/p>\n<\/td>\n<td>\n<p>0.680893<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"180\" width=\"180\">\n<p>Black_promln_uof<\/p>\n<\/th>\n<td data-colwidth=\"150\" width=\"150\">\n<p>0.729674<\/p>\n<\/td>\n<td>\n<p>0.795486<\/p>\n<\/td>\n<td>\n<p><strong>0.680893<\/strong><\/p>\n<\/td>\n<td>\n<p>1.000000<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0445\u0443\u0436\u0435 (0.68 \u043f\u0440\u043e\u0442\u0438\u0432 0.88 \u0438 0.72 \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439). \u041d\u043e \u0440\u0430\u0434\u0443\u0435\u0442 \u0437\u0434\u0435\u0441\u044c, \u043f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435, \u0447\u0442\u043e \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u044b \u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u0438 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u0431\u0435\u043b\u044b\u043c\u0438 \u0438 \u0447\u0435\u0440\u043d\u044b\u043c\u0438, \u0442.\u0435. \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c\u0438 \u0438 \u0436\u0435\u0440\u0442\u0432\u0430\u043c\u0438 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u0430\u044f <em>\u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u0430\u044f <\/em>\u043a\u043e\u0440\u0440\u0435\u043b\u044f\u0446\u0438\u044f.<\/p>\n<p>\u041d\u0443, \u0438 \u043d\u0430\u0448 &#171;\u0441\u0430\u043c\u043e\u0434\u0435\u043b\u044c\u043d\u044b\u0439&#187; \u0438\u043d\u0434\u0435\u043a\u0441 &#8212; \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0436\u0435\u0440\u0442\u0432 \u043f\u043e\u043b\u0438\u0446\u0438\u0438 \u043a \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439:<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043c\u0435\u0436\u0434\u0443 \u0440\u0430\u0441\u0430\u043c\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0435\u0449\u0435 \u0431\u043e\u043b\u0435\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0439, \u0447\u0435\u043c \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437. \u0412\u044b\u0432\u043e\u0434 \u0442\u043e\u0442 \u0436\u0435 &#8212; \u0431\u0435\u043b\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u0438 \u0447\u0430\u0449\u0435 \u0433\u0438\u0431\u043d\u0443\u0442 \u043e\u0442 \u0440\u0443\u043a \u043f\u043e\u043b\u0438\u0446\u0438\u0438, \u0447\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0435.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u043e\u0441\u0442\u0430\u044e\u0442\u0441\u044f \u0432 \u0441\u0438\u043b\u0435. <\/p>\n<p>\u0427\u0442\u043e \u0436, \u0442\u0435\u043f\u0435\u0440\u044c &#8212; \u0443\u0440\u043e\u043a\u0438 \u0433\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u0438! \ud83d\ude42<\/p>\n<h2>\u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435<\/h2>\n<p>\u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u044b \u0438\u0437 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0424\u0411\u0420, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/crime-data-explorer.fr.cloud.gov\/api#summary-controller\" rel=\"noopener noreferrer nofollow\">\u043e\u0446\u0435\u043d\u043a\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0432\u0438\u0434\u043e\u0432 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c<\/a> (State level UCR Estimated Crime Data Endpoint) &#8212; \u0431\u0435\u0437 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0438 \u043f\u043e \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438 (CSV <a href=\"https:\/\/yadi.sk\/d\/2rA1BR8pzT_Yyw\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>);<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/crime-data-explorer.fr.cloud.gov\/api#arrest-data-controller\" rel=\"noopener noreferrer nofollow\">\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0430\u0440\u0435\u0441\u0442\u043e\u0432 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c<\/a> (State level Arrest Demographic Count By Offense Endpoint) &#8212; \u0441 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u043e\u0439 \u043f\u043e \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438 (CSV <a href=\"https:\/\/yadi.sk\/d\/J--y1RfgVYqQFA\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c<\/a>).<\/p>\n<\/li>\n<\/ul>\n<p>\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044b\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c, \u0448\u0442\u0430\u0442\u0430\u043c \u0438 \u0440\u0430\u0441\u043e\u0432\u043e\u043c\u0443 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u0443 \u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c, \u043a\u0430\u043a \u044f \u043d\u0438 \u0431\u0438\u043b\u0441\u044f: \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u043f\u043e\u043b\u043d\u044b\u0435, \u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438, \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0448\u0442\u0430\u0442\u0430\u043c. \u041d\u043e \u0438 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043f\u043e\u043b\u043d\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043a\u0440\u043e\u043c\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043f\u043e \u0432\u0441\u0435\u043c 51 \u0448\u0442\u0430\u0442\u0443 \u0441 1991 \u043f\u043e 2018 \u0433\u043e\u0434, \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0432\u0438\u0434\u0430\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439:<\/p>\n<ol>\n<li>\n<p><strong>violent crime<\/strong>: \u0432\u0441\u0435 \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f (\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e, \u0433\u0440\u0430\u0431\u0435\u0436, \u0438\u0437\u043d\u0430\u0441\u0438\u043b\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u044f\u0433\u0447\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u043c\u0438), \u0441\u043c. \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 <a href=\"https:\/\/ucr.fbi.gov\/crime-in-the-u.s\/2018\/crime-in-the-u.s.-2018\/topic-pages\/violent-crime\" rel=\"noopener noreferrer nofollow\">\u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0424\u0411\u0420<\/a>;<\/p>\n<\/li>\n<li>\n<p><strong>homicide<\/strong>: \u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e<\/p>\n<\/li>\n<li>\n<p><strong>rape legacy<\/strong>: \u0438\u0437\u043d\u0430\u0441\u0438\u043b\u043e\u0432\u0430\u043d\u0438\u0435 (\u043f\u043e \u0441\u0442\u0430\u0440\u044b\u043c \u043c\u0435\u0440\u043a\u0430\u043c &#8212; \u0434\u043e 2013 \u0433.)<\/p>\n<\/li>\n<li>\n<p><strong>rape revised<\/strong>: \u0438\u0437\u043d\u0430\u0441\u0438\u043b\u043e\u0432\u0430\u043d\u0438\u0435 (\u043f\u043e \u043d\u043e\u0432\u044b\u043c \u043c\u0435\u0440\u043a\u0430\u043c &#8212; \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 2013 \u0433.)<\/p>\n<\/li>\n<li>\n<p><strong>robbery<\/strong>: \u0433\u0440\u0430\u0431\u0435\u0436<\/p>\n<\/li>\n<li>\n<p><strong>aggravated assault<\/strong>: \u043d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u044f\u0433\u0447\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u043c\u0438<\/p>\n<\/li>\n<li>\n<p><strong>property crime<\/strong>: \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0442\u0438\u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438<\/p>\n<\/li>\n<li>\n<p><strong>burglary<\/strong>: \u0432\u0437\u043b\u043e\u043c \/ \u043f\u0440\u043e\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0435 \u0432 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/li>\n<li>\n<p><strong>larceny<\/strong>: \u0445\u0438\u0449\u0435\u043d\u0438\u0435<\/p>\n<\/li>\n<li>\n<p><strong>motor vehicle theft<\/strong>: \u0443\u0433\u043e\u043d \u0430\u0432\u0442\u043e\u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u0430<\/p>\n<\/li>\n<li>\n<p><strong>arson<\/strong>: \u043f\u043e\u0434\u0436\u043e\u0433<\/p>\n<\/li>\n<\/ol>\n<p>\u0414\u043b\u044f \u0446\u0435\u043b\u0435\u0439 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 (violent crime), \u0447\u0442\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u0443\u0435\u0442\u0441\u044f \u0441 \u0432\u044b\u0448\u0435\u0438\u0437\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439.<\/p>\n<p>\u0412\u0442\u043e\u0440\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043f\u043e 51 \u0448\u0442\u0430\u0442\u0443 \u0441 2000 \u043f\u043e 2018 \u0433\u043e\u0434, \u0441 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u043e\u0439 \u043f\u043e \u0440\u0430\u0441\u0430\u043c (\u0432\u044b\u0434\u0435\u043b\u044f\u0435\u043c\u044b\u0435 \u0440\u0430\u0441\u043e\u0432\u044b\u0435 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 &#8212; \u0441\u043c. \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/517782\/\" rel=\"noopener noreferrer nofollow\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>). \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0411\u0414 \u043f\u043e \u0430\u0440\u0435\u0441\u0442\u0430\u043c \u0438\u043c\u0435\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u0440\u0443\u0433\u0443\u044e \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0443 \u043f\u043e \u0442\u0438\u043f\u0430\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u0438 \u043d\u0435 \u0438\u043c\u0435\u0435\u0442 \u0433\u043e\u0442\u043e\u0432\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u043f\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f\u043c, \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 4 \u0432\u0438\u0434\u0430 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043f\u0440\u0430\u0432\u043e\u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0439 (\u0443\u0431\u0438\u0439\u0441\u0442\u0432\u043e, \u0433\u0440\u0430\u0431\u0435\u0436, \u0438\u0437\u043d\u0430\u0441\u0438\u043b\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043d\u0430\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u0441 \u043e\u0442\u044f\u0433\u0447\u0430\u044e\u0449\u0438\u043c\u0438 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u043c\u0438).<\/p>\n<h2>\u0413\u0435\u043e\u0433\u0440\u0430\u0444\u0438\u044f \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0431\u0435\u0437 \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438<\/h2>\n<p>\u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u043c\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0430 \u043f\u043e \u0448\u0442\u0430\u0442\u0430\u043c \u0431\u0435\u0437 \u0440\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u0438\u043a\u043e\u0432:<\/p>\n<pre><code class=\"python\">import pandas as pd, numpy as np  CRIME_STATES_FILE = ROOT_FOLDER + '\\\\crimes_by_state.csv' df_crime_states = pd.read_csv(CRIME_STATES_FILE, sep=';', header=0,                                usecols=['year', 'state_abbr', 'population', 'violent_crime'])<\/code><\/pre>\n<p>\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<\/th>\n<th data-colwidth=\"120\" width=\"120\">\n<p>year<\/p>\n<\/th>\n<th data-colwidth=\"164\" width=\"164\">\n<p>state_abbr<\/p>\n<\/th>\n<th>\n<p>population<\/p>\n<\/th>\n<th>\n<p>violent_crime<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>0<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2016<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>4860545<\/p>\n<\/td>\n<td>\n<p>25878<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>1996<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>4273000<\/p>\n<\/td>\n<td>\n<p>24159<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>2<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>1997<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>4319000<\/p>\n<\/td>\n<td>\n<p>24379<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>3<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>1998<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>4352000<\/p>\n<\/td>\n<td>\n<p>22286<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>4<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>1999<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>AL<\/p>\n<\/td>\n<td>\n<p>4369862<\/p>\n<\/td>\n<td>\n<p>21421<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>&#8230;<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>&#8230;<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>&#8230;<\/p>\n<\/td>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<td>\n<p>&#8230;<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1423<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2000<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>572059<\/p>\n<\/td>\n<td>\n<p>8626<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1424<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2001<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>573822<\/p>\n<\/td>\n<td>\n<p>9195<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1425<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2002<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>569157<\/p>\n<\/td>\n<td>\n<p>9322<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1426<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2003<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>557620<\/p>\n<\/td>\n<td>\n<p>9061<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"90\" width=\"90\">\n<p>1427<\/p>\n<\/th>\n<td data-colwidth=\"120\" width=\"120\">\n<p>2016<\/p>\n<\/td>\n<td data-colwidth=\"164\" width=\"164\">\n<p>DC<\/p>\n<\/td>\n<td>\n<p>684336<\/p>\n<\/td>\n<td>\n<p>8236<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>1428 rows \u00d7 4 columns<\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u043e\u043b\u043d\u044b\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0448\u0442\u0430\u0442\u043e\u0432 (CSV \u043f\u0435\u0440\u0435\u0447\u043d\u044f \u0448\u0442\u0430\u0442\u043e\u0432 <a href=\"https:\/\/yadi.sk\/d\/Fb5NOSiLiVXwDA\" rel=\"noopener noreferrer nofollow\">\u0437\u0434\u0435\u0441\u044c <\/a>&#8212; \u0443\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438 \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 \u0440\u0430\u0437). \u0422\u0430\u043a\u0436\u0435 \u043f\u043e\u0447\u0438\u0441\u0442\u0438\u043c \u0438 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<pre><code class=\"python\">df_crime_states = df_crime_states.merge(df_state_names, on='state_abbr') df_crime_states.dropna(inplace=True) df_crime_states.sort_values(by=['year', 'state_abbr'], inplace=True)<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435 \u0435\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f, \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u043c \u0443\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u043d\u0430 \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u0447\u0435\u043b\u043e\u0432\u0435\u043a:<\/p>\n<pre><code class=\"python\">df_crime_states['crime_promln'] = df_crime_states['violent_crime'] * 1e6 \/ df_crime_states['population']<\/code><\/pre>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0432\u0438\u0434\u0435 \u0434\u0432\u0443\u043c\u0435\u0440\u043d\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0437\u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u0441 2000 \u043f\u043e 2018 \u0433\u043e\u0434, \u043f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0432 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0448\u0442\u0430\u0442\u043e\u0432 \u0432 \u0441\u0442\u043e\u043b\u0431\u0446\u044b \u0438 \u0443\u0431\u0440\u0430\u0432 \u043b\u0438\u0448\u043d\u0438\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b:<\/p>\n<pre><code class=\"python\">df_crime_states_agg = df_crime_states.groupby(['state_name', 'year'])['violent_crime'].sum().unstack(level=1).T df_crime_states_agg.fillna(0, inplace=True) df_crime_states_agg = df_crime_states_agg.astype('uint32').loc[2000:2018, :]<\/code><\/pre>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0441 19 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438 (\u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439, \u0442.\u0435. \u043b\u0435\u0442 \u0441 2000 \u043f\u043e 2018) \u0438 51 \u0441\u0442\u043e\u043b\u0431\u0446\u043e\u043c (\u043f\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u0448\u0442\u0430\u0442\u043e\u0432).<\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u043c \u0442\u043e\u043f-10 \u0448\u0442\u0430\u0442\u043e\u0432 \u043f\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0433\u043e\u0434\u043e\u0432\u043e\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439:<\/p>\n<pre><code class=\"python\">df_crime_states_top10 = df_crime_states_agg.describe().T.nlargest(10, 'mean').astype('int32')<\/code><\/pre>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<\/th>\n<th data-colwidth=\"72\" width=\"72\">\n<p>count<\/p>\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<p>mean<\/p>\n<\/th>\n<th data-colwidth=\"71\" width=\"71\">\n<p>std<\/p>\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<p>min<\/p>\n<\/th>\n<th data-colwidth=\"77\" width=\"77\">\n<p>25%<\/p>\n<\/th>\n<th data-colwidth=\"79\" width=\"79\">\n<p>50%<\/p>\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<p>75%<\/p>\n<\/th>\n<th>\n<p>max<\/p>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>state_name<\/p>\n<\/th>\n<th data-colwidth=\"72\" width=\"72\">\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<\/th>\n<th data-colwidth=\"71\" width=\"71\">\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<\/th>\n<th data-colwidth=\"77\" width=\"77\">\n<\/th>\n<th data-colwidth=\"79\" width=\"79\">\n<\/th>\n<th data-colwidth=\"81\" width=\"81\">\n<\/th>\n<th>\n<\/th>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>California<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>181514<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>19425<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>153763<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>165508<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>178597<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>193022<\/p>\n<\/td>\n<td>\n<p>212867<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Texas<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>117614<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>6522<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>104734<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>113212<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>121091<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>122084<\/p>\n<\/td>\n<td>\n<p>126018<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Florida<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>110104<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>18542<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>81980<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>92809<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>113541<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>127488<\/p>\n<\/td>\n<td>\n<p>131878<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>New York<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>81618<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>9548<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>68495<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>75549<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>77563<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>85376<\/p>\n<\/td>\n<td>\n<p>105111<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Illinois<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>62866<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>10445<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>47775<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>54039<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>64185<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>69937<\/p>\n<\/td>\n<td>\n<p>81196<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Michigan<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>49273<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>5029<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>41712<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>44900<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>49737<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>54035<\/p>\n<\/td>\n<td>\n<p>56981<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Pennsylvania<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>46941<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>5066<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>39192<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>41607<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>48188<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>51021<\/p>\n<\/td>\n<td>\n<p>55028<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Tennessee<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>41951<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>2432<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>38063<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>40321<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>41562<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>43358<\/p>\n<\/td>\n<td>\n<p>46482<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>Georgia<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>40228<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>3327<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>34355<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>38283<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>39435<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>41495<\/p>\n<\/td>\n<td>\n<p>47353<\/p>\n<\/td>\n<\/tr>\n<tr>\n<th data-colwidth=\"127\" width=\"127\">\n<p>North Carolina<\/p>\n<\/th>\n<td data-colwidth=\"72\" width=\"72\">\n<p>19<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>37936<\/p>\n<\/td>\n<td data-colwidth=\"71\" width=\"71\">\n<p>3193<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>32718<\/p>\n<\/td>\n<td data-colwidth=\"77\" width=\"77\">\n<p>34706<\/p>\n<\/td>\n<td data-colwidth=\"79\" width=\"79\">\n<p>38243<\/p>\n<\/td>\n<td data-colwidth=\"81\" width=\"81\">\n<p>40258<\/p>\n<\/td>\n<td>\n<p>43125<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0435 \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"python\">df_crime_states_top10 = df_crime_states_agg.loc[:, df_crime_states_agg_top10.index] plt = df_crime_states_top10.plot.box(figsize=(12, 10)) plt.set_ylabel('\u041a\u043e\u043b-\u0432\u043e \u043d\u0430\u0441\u0438\u043b\u044c\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0439 (2000 - 2018)')<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>&#171;\u0413\u043e\u043b\u043b\u0438\u0432\u0443\u0434\u0441\u043a\u0438\u0439&#187; \u0448\u0442\u0430\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0435\u0436\u0430\u0435\u0442 \u043f\u043e \u044d\u0442\u043e\u0439 \u043f\u0435\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0435 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435. \u0422\u0440\u043e\u0439\u043a\u0430 \u043b\u0438\u0434\u0435\u0440\u043e\u0432 &#8212; \u044e\u0436\u043d\u044b\u0435 \u0448\u0442\u0430\u0442\u044b (\u041a\u0430\u043b\u0438\u0444\u043e\u0440\u043d\u0438\u044f, \u0422\u0435\u0445\u0430\u0441 \u0438 \u0424\u043b\u043e\u0440\u0438\u0434\u0430); \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0440\u043e \u044d\u0442\u0438 \u0448\u0442\u0430\u0442\u044b \u0441\u043d\u044f\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0430\u043c\u0435\u0440\u0438\u043a\u0430\u043d\u0441\u043a\u0438\u0445 \u0444\u0438\u043b\u044c\u043c\u043e\u0432 \u043f\u0440\u043e \u0431\u0430\u043d\u0434\u0438\u0442\u043e\u0432 \ud83d\ude42<\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0448\u0442\u0430\u0442\u0430\u0445 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f \u0437\u0430 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 (\u041a\u0430\u043b\u0438\u0444\u043e\u0440\u043d\u0438\u044f, \u0424\u043b\u043e\u0440\u0438\u0434\u0430, \u0418\u043b\u043b\u0438\u043d\u043e\u0439\u0441), \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u043d \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0447\u0442\u0438 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0443\u0440\u043e\u0432\u043d\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u0414\u0436\u043e\u0440\u0434\u0436\u0438\u0438).<\/p>\n<p>\u041f\u043e\u0434\u043e\u0437\u0440\u0435\u0432\u0430\u044e, \u0447\u0442\u043e \u043f\u0440\u0435\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0447\u0438\u0441\u043b\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044f. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0442\u043e\u043f-10 \u0448\u0442\u0430\u0442\u043e\u0432 \u043f\u043e \u043d\u0430\u0441\u0435\u043b\u0435\u043d\u0438\u044e \u0432 2018 \u0433\u043e\u0434\u0443:<\/p>\n<pre><code class=\"python\">df_crime_states_2018 = df_crime_states.loc[df_crime_states['year'] == 2018] plt = df_crime_states_2018.nlargest(10, 'population').sort_values(by='population').plot.barh(x='state_name', y='population', legend=False, figsize=(10,5))<\/code><\/pre>\n<\/div>\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-309717","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/309717","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=309717"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/309717\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=309717"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=309717"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=309717"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}