{"id":859,"date":"2019-06-23T21:10:09","date_gmt":"2019-06-23T19:10:09","guid":{"rendered":"http:\/\/35.180.88.53\/?p=859"},"modified":"2021-04-05T10:19:25","modified_gmt":"2021-04-05T08:19:25","slug":"web-scraping-advanced-football-statistics","status":"publish","type":"post","link":"https:\/\/www.sergilehkyi.com\/uk\/2019\/06\/web-scraping-advanced-football-statistics\/","title":{"rendered":"\u0412\u0435\u0431-\u0441\u043a\u0440\u0430\u043f\u0456\u043d\u0433 \u0440\u043e\u0437\u0448\u0438\u0440\u0435\u043d\u043e\u0457 \u0444\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u043e\u0457 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438"},"content":{"rendered":"\n<p>\u041e\u0441\u0442\u0430\u043d\u043d\u0456\u043c \u0447\u0430\u0441\u043e\u043c \u044f \u0432\u0441\u0435 \u043e\u0431\u0433\u043e\u0432\u043e\u0440\u044e\u0432\u0430\u0432 \u0440\u043e\u043b\u044c \u0443\u0434\u0430\u0447\u0456 \u0443 \u0444\u0443\u0442\u0431\u043e\u043b\u0456. \u0410 \u043c\u043e\u0436\u0435, \u0446\u0435 \u043d\u0435 \u0447\u0438\u0441\u0442\u0430 \u0443\u0434\u0430\u0447\u0430, \u0430 \u043c\u0430\u0439\u0441\u0442\u0435\u0440\u043d\u0456\u0441\u0442\u044c? \u0427\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0437\u0430\u0432\u043e\u0439\u043e\u0432\u0443\u044e\u0442\u044c \u0441\u0432\u043e\u0457 \u043b\u0456\u0433\u0438 \u0432\u0438\u043a\u043b\u044e\u0447\u043d\u043e \u043d\u0430 \u043c\u0430\u0439\u0441\u0442\u0435\u0440\u043d\u043e\u0441\u0442\u0456? \u0410\u0431\u043e \u0432\u0430\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c \u0443\u0434\u0430\u0447\u0456 \u0434\u043e\u0441\u0438\u0442\u044c \u0432\u0435\u043b\u0438\u043a\u0430? \u041a\u043e\u043c\u0443 \u0449\u0430\u0441\u0442\u0438\u0442\u044c, \u0430 \u043a\u043e\u043c\u0443 \u043d\u0456? \u0427\u0438 \u0437\u0430\u0441\u043b\u0443\u0433\u043e\u0432\u0443\u0432\u0430\u043b\u0430 \u0446\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043d\u0430 \u0432\u0438\u043b\u0456\u0442? \u0406 \u0449\u0435 \u043a\u0443\u043f\u0430 \u043f\u043e\u0434\u0456\u0431\u043d\u0438\u0445 \u043f\u0438\u0442\u0430\u043d\u044c.<\/p>\n\n\n\n<p>\u0410\u043b\u0435, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u044f &#8211; \u0447\u0443\u0432\u0430\u043a \u0434\u0430\u043d\u0438\u0445, \u044f \u043f\u043e\u0434\u0443\u043c\u0430\u0432, \u0442\u0430\u043a \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0442\u0440\u0438\u043c\u0430\u0454\u043c\u043e \u0434\u0430\u043d\u0456 \u0456 \u0437\u043d\u0430\u0439\u0434\u0435\u043c\u043e \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456. \u0425\u043e\u0447\u0430, \u044f\u043a \u0442\u0438 \u0432\u0438\u043c\u0456\u0440\u044f\u0454\u0448 \u0443\u0434\u0430\u0447\u0443? \u042f\u043a \u0442\u0438 \u043e\u0446\u0456\u043d\u0438\u0448 \u043c\u0430\u0439\u0441\u0442\u0435\u0440\u043d\u0456\u0441\u0442\u044c? \u041d\u0435 \u0456\u0441\u043d\u0443\u0454 \u0442\u0430\u043a\u043e\u0457 \u0454\u0434\u0438\u043d\u043e\u0457 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u044f\u043a \u0443 \u043a\u043e\u043c\u043f&#8217;\u044e\u0442\u0435\u0440\u043d\u0438\u0445 \u0456\u0433\u0440\u0430\u0445 FIFA \u0430\u0431\u043e PES. \u041c\u0438 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u0434\u0438\u0432\u0438\u0442\u0438\u0441\u044f \u043d\u0430 \u0437\u0430\u0433\u0430\u043b\u044c\u043d\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u0443, \u043d\u0430 \u0434\u043e\u0432\u0433\u043e\u0441\u0442\u0440\u043e\u043a\u043e\u0432\u0456 \u0434\u0430\u043d\u0456 \u0437 \u0434\u0435\u043a\u0456\u043b\u044c\u043a\u043e\u043c\u0430 \u0437\u043c\u0456\u043d\u043d\u0438\u043c\u0438 \u0456 \u0437 \u0443\u0440\u0430\u0445\u0443\u0432\u0430\u043d\u043d\u044f\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0443 \u043a\u043e\u0436\u043d\u043e\u0457 \u043e\u043a\u0440\u0435\u043c\u043e\u0457 \u0433\u0440\u0438. \u0422\u043e\u043c\u0443 \u0449\u043e \u0432 \u043e\u043a\u0440\u0435\u043c\u0456 \u043c\u043e\u043c\u0435\u043d\u0442\u0438 \u0433\u0440\u0430\u0432\u0446\u0435\u0432\u0456 \u043e\u0434\u043d\u0456\u0454\u0457 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0432\u0438\u0441\u0442\u0430\u0447\u0430\u0454 \u0443\u0434\u0430\u0447\u0456, \u0449\u043e\u0431 \u0437\u0430\u0431\u0438\u0442\u0438 \u043f\u0435\u0440\u0435\u043c\u043e\u0436\u043d\u0438\u0439 \u0433\u043e\u043b \u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u043d\u0456\u0445 \u0445\u0432\u0438\u043b\u0438\u043d\u0430\u0445 \u043f\u0456\u0441\u043b\u044f \u043f\u043e\u0432\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0456\u043d\u0443\u0432\u0430\u043d\u043d\u044f \u043d\u0430\u0434 \u0441\u0443\u043f\u0440\u043e\u0442\u0438\u0432\u043d\u0438\u043a\u043e\u043c, \u0456 \u0432\u0456\u043d \u0437\u0430\u043a\u0456\u043d\u0447\u0443\u0454\u0442\u044c\u0441\u044f \u043d\u0456\u0447\u0438\u0454\u044e, \u0456 \u043e\u0431\u0438\u0434\u0432\u0456 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u043e\u0442\u0440\u0438\u043c\u0443\u044e\u0442\u044c 1 \u0431\u0430\u043b, \u0442\u043e\u0434\u0456 \u044f\u043a \u0431\u0443\u043b\u043e \u044f\u0441\u043d\u043e, \u0449\u043e \u043f\u0435\u0440\u0448\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u043b\u0430 \u043f\u0435\u0440\u0435\u043c\u043e\u0433\u0443. \u041e\u0434\u043d\u0456\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0456 \u043f\u043e\u0449\u0430\u0441\u0442\u0438\u043b\u043e, \u0456\u043d\u0448\u0456\u0439 \u043d\u0435 \u0434\u0443\u0436\u0435. \u0422\u0430\u043a, \u0443 \u0446\u0456\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0456\u0457 \u0446\u0435 \u0443\u0434\u0430\u0447\u0430, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043e\u0434\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0440\u043e\u0431\u0438\u043b\u0430 \u0432\u0441\u0435, \u0441\u0442\u0432\u043e\u0440\u0438\u043b\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043d\u044c\u043e \u043d\u0435\u0431\u0435\u0437\u043f\u0435\u0447\u043d\u0438\u0445 \u043c\u043e\u043c\u0435\u043d\u0442\u0456\u0432, \u0430\u043b\u0435 \u043d\u0435 \u0437\u0430\u0431\u0438\u043b\u0430. \u0422\u0430\u043a\u0435 \u0441\u0442\u0430\u0454\u0442\u044c\u0441\u044f. \u0406 \u0442\u043e\u043c\u0443 \u043c\u0438 \u043b\u044e\u0431\u0438\u043c\u043e \u0444\u0443\u0442\u0431\u043e\u043b. \u0422\u043e\u043c\u0443 \u0449\u043e \u0442\u0443\u0442 \u0432\u0441\u0435 \u043c\u043e\u0436\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u044f.<\/p>\n\n\n\n<p>\u0425\u043e\u0447\u0430 \u043d\u0435 \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043c\u0456\u0440\u044f\u0442\u0438 \u0443\u0434\u0430\u0447\u0443, \u0430\u043b\u0435 \u043c\u043e\u0436\u043d\u0430 \u0437\u0440\u043e\u0437\u0443\u043c\u0456\u0442\u0438, \u044f\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0433\u0440\u0430\u043b\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u0432\u0456\u0434\u043d\u043e\u0441\u043d\u043e \u043d\u043e\u0432\u043e\u0457 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0443 \u0444\u0443\u0442\u0431\u043e\u043b\u0456 &#8211; xG, \u0430\u0431\u043e \u043e\u0447\u0456\u043a\u0443\u0432\u0430\u043d\u0456 \u0433\u043e\u043b\u0438.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>xG &#8211; \u0446\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u043d\u0438\u0439 \u043f\u043e\u043a\u0430\u0437\u043d\u0438\u043a \u044f\u043a\u043e\u0441\u0442\u0456 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u0445 \u0456 \u0443\u043f\u0443\u0449\u0435\u043d\u0438\u0445 \u0448\u0430\u043d\u0441\u0456\u0432<\/p><\/blockquote>\n\n\n\n<p>\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u043d\u0430\u0439\u0442\u0438 \u0434\u0430\u043d\u0456 \u0437 \u0446\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u043d\u0438\u043a\u043e\u043c \u043d\u0430 \u0441\u0430\u0439\u0442\u0456 <a href=\"https:\/\/understat.com\/\">understat.com<\/a>. \u0417\u0432\u0456\u0434\u0441\u0438 \u044f \u0439 \u0431\u0443\u0434\u0443 \u0441\u043a\u0440\u0430\u043f\u0438\u0442\u0438 \u0434\u0430\u043d\u0456.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0420\u043e\u0437\u0443\u043c\u0456\u043d\u043d\u044f \u0434\u0430\u043d\u0438\u0445<\/h3>\n\n\n\n<p>\u041e\u0442\u0436\u0435, \u0449\u043e \u0436 \u0446\u0435 \u0437\u0430 \u0445\u0440\u0456\u043d\u044c \u0446\u0435 xG \u0456 \u0447\u043e\u043c\u0443 \u0432\u043e\u043d\u043e \u0432\u0430\u0436\u043b\u0438\u0432\u0435. \u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c \u043c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u0437\u043d\u0430\u0439\u0442\u0438 \u043d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0456\u0439 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456 <a href=\"https:\/\/understat.com\/\">understat.com<\/a>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\u041e\u0447\u0456\u043a\u0443\u0432\u0430\u043d\u0456 \u0433\u043e\u043b\u0438 (xG) &#8211; \u0446\u0435 \u043d\u043e\u0432\u0430 \u0440\u0435\u0432\u043e\u043b\u044e\u0446\u0456\u0439\u043d\u0430 \u0444\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u0430 \u043c\u0435\u0442\u0440\u0438\u043a\u0430, \u044f\u043a\u0430 \u0434\u043e\u0437\u0432\u043e\u043b\u044f\u0454 \u043e\u0446\u0456\u043d\u044e\u0432\u0430\u0442\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u0456\u0441\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0442\u0430 \u0433\u0440\u0430\u0432\u0446\u044f.<br> \u0423 \u0433\u0440\u0456 \u0437 \u043d\u0438\u0437\u044c\u043a\u043e\u044e \u043a\u0456\u043b\u044c\u043a\u0456\u0441\u0442\u044e \u043e\u0447\u043e\u043a, \u0442\u0430\u043a\u0438\u0445 \u044f\u043a \u0444\u0443\u0442\u0431\u043e\u043b, \u043f\u0456\u0434\u0441\u0443\u043c\u043a\u043e\u0432\u0438\u0439 \u0440\u0430\u0445\u0443\u043d\u043e\u043a \u043d\u0435 \u0434\u0430\u0454 \u0447\u0456\u0442\u043a\u043e\u0457 \u043a\u0430\u0440\u0442\u0438\u043d\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0456.<br> \u041e\u0441\u044c \u0447\u043e\u043c\u0443 \u0432\u0441\u0435 \u0431\u0456\u043b\u044c\u0448\u0435 \u0456 \u0431\u0456\u043b\u044c\u0448\u0435 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u0438\u0445 \u0430\u043d\u0430\u043b\u0456\u0442\u0438\u043a\u0456\u0432 \u0437\u0432\u0435\u0440\u0442\u0430\u044e\u0442\u044c\u0441\u044f \u0434\u043e \u043f\u0435\u0440\u0435\u0434\u043e\u0432\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u044f\u043a xG, \u0449\u043e \u0454 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u043d\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u043d\u0438\u043a\u043e\u043c \u044f\u043a\u043e\u0441\u0442\u0456 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u0445 \u0456 \u0443\u043f\u0443\u0449\u0435\u043d\u0438\u0445 \u0448\u0430\u043d\u0441\u0456\u0432.<br> \u041d\u0430\u0448\u043e\u044e \u043c\u0435\u0442\u043e\u044e \u0431\u0443\u043b\u043e \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u043d\u0430\u0439\u0431\u0456\u043b\u044c\u0448 \u0442\u043e\u0447\u043d\u0438\u0439 \u043c\u0435\u0442\u043e\u0434 \u043e\u0446\u0456\u043d\u043a\u0438 \u044f\u043a\u043e\u0441\u0442\u0456 \u0443\u0434\u0430\u0440\u0456\u0432 \u043f\u043e \u0432\u043e\u0440\u043e\u0442\u0430\u0445.<br> \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u043c\u0438 \u043f\u0456\u0434\u0433\u043e\u0442\u0443\u0432\u0430\u043b\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0438 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0443\u0432\u0430\u043d\u043d\u044f \u0437 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u0438\u043c\u0438 \u043c\u0435\u0440\u0435\u0436\u0430\u043c\u0438 \u0437 \u0432\u0435\u043b\u0438\u043a\u0438\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0434\u0430\u043d\u0438\u0445 (&gt; 100 000 \u0437\u0440\u0430\u0437\u043a\u0456\u0432, \u043f\u043e\u043d\u0430\u0434 10 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0456\u0432 \u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0433\u043e).<\/p><cite>  <a href=\"https:\/\/understat.com\/\">understat.com<\/a> <\/cite><\/blockquote>\n\n\n\n<p>\u0414\u043e\u0441\u043b\u0456\u0434\u043d\u0438\u043a\u0438 \u043d\u0430\u0432\u0447\u0438\u043b\u0438 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u0443 \u043c\u0435\u0440\u0435\u0436\u0443 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u0441\u0438\u0442\u0443\u0430\u0446\u0456\u0439, \u044f\u043a\u0456 \u043f\u0440\u0438\u0437\u0432\u0435\u043b\u0438 \u0434\u043e \u0433\u043e\u043b\u0456\u0432, \u0456 \u0442\u0435\u043f\u0435\u0440 \u0432\u043e\u043d\u0430 \u0434\u0430\u0454 \u043d\u0430\u043c \u043e\u0446\u0456\u043d\u043a\u0443 \u0442\u043e\u0433\u043e, \u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u0438\u0445 \u0448\u0430\u043d\u0441\u0456\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043c\u0430\u043b\u0430 \u043f\u0456\u0434 \u0447\u0430\u0441 \u043c\u0430\u0442\u0447\u0443. \u0422\u043e\u043c\u0443 \u0449\u043e \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043c\u0430\u0442\u0438 25 \u0443\u0434\u0430\u0440\u0456\u0432 \u043f\u0440\u043e\u0442\u044f\u0433\u043e\u043c \u0433\u0440\u0438, \u0430\u043b\u0435 \u044f\u043a\u0449\u043e \u0432\u0441\u0456 \u0432\u043e\u043d\u0438 \u0437\u043d\u0430\u0445\u043e\u0434\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u0432\u0435\u043b\u0438\u043a\u0456\u0439 \u0432\u0456\u0434\u0441\u0442\u0430\u043d\u0456 \u0430\u0431\u043e \u043f\u0456\u0434 \u043d\u0438\u0437\u044c\u043a\u0438\u043c \u043a\u0443\u0442\u043e\u043c \u0434\u043e \u0432\u043e\u0440\u0456\u0442 \u0430\u0431\u043e \u0437\u0430\u043d\u0430\u0434\u0442\u043e \u0441\u043b\u0430\u0431\u043a\u0456, &#8211; \u043a\u043e\u0440\u043e\u0442\u0448\u0435, \u0443\u0434\u0430\u0440\u0438 \u043d\u0438\u0437\u044c\u043a\u043e\u0457 \u044f\u043a\u043e\u0441\u0442\u0456, \u0432\u043e\u043d\u0438 \u043d\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0443\u0442\u044c \u0434\u043e \u0432\u0437\u044f\u0442\u0442\u044f \u0432\u043e\u0440\u0456\u0442. \u0425\u043e\u0447\u0430 \u0434\u0435\u044f\u043a\u0456 \u00ab\u0435\u043a\u0441\u043f\u0435\u0440\u0442\u0438\u00bb, \u044f\u043a\u0456 \u043d\u0435 \u0431\u0430\u0447\u0438\u043b\u0438 \u0433\u0440\u0443 \u0431\u0443\u0434\u0443\u0442\u044c \u043a\u0430\u0437\u0430\u0442\u0438, \u0449\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0434\u043e\u043c\u0456\u043d\u0443\u0432\u0430\u043b\u0430, \u0441\u0442\u0432\u043e\u0440\u0438\u043b\u0438 \u0442\u043e\u043d\u043d\u0438 \u0448\u0430\u043d\u0441\u0456\u0432 \u0431\u043b\u0430-\u0431\u043b\u0430-\u0431\u043b\u0430-\u0431\u043b\u0430. \u042f\u043a\u0456\u0441\u0442\u044c \u0446\u0438\u0445 \u0448\u0430\u043d\u0441\u0456\u0432 \u043c\u0430\u0454 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f. \u0406 \u0442\u0443\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0430 xG \u0441\u0442\u0430\u0454 \u0432 \u043f\u0440\u0438\u0433\u043e\u0434\u0456. \u0417 \u0446\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u043d\u0438\u043a\u043e\u043c \u0432\u0438 \u0442\u0435\u043f\u0435\u0440 \u0440\u043e\u0437\u0443\u043c\u0456\u0454\u0442\u0435, \u0449\u043e \u041c\u0435\u0441\u0441\u0456 \u0441\u0442\u0432\u043e\u0440\u044e\u0454 \u0446\u0456\u043b\u0456 \u0432 \u0443\u043c\u043e\u0432\u0430\u0445, \u0434\u0435 \u0434\u0443\u0436\u0435 \u0432\u0430\u0436\u043a\u043e \u0437\u0430\u0431\u0438\u0442\u0438, \u0430\u0431\u043e \u0432\u043e\u0440\u043e\u0442\u0430\u0440 \u0440\u044f\u0442\u0443\u0454 \u043a\u043e\u043c\u0430\u043d\u0434\u0443, \u043a\u043e\u043b\u0438 \u043c\u0430\u0432 \u0431\u0438 \u0431\u0443\u0442\u0438 \u0433\u043e\u043b. \u0412\u0441\u0456 \u0446\u0456 \u0440\u0435\u0447\u0456 \u0441\u043a\u043b\u0430\u0434\u0430\u044e\u0442\u044c\u0441\u044f, \u0456 \u043c\u0438 \u0431\u0430\u0447\u0438\u043c\u043e \u0447\u0435\u043c\u043f\u0456\u043e\u043d\u0456\u0432, \u044f\u043a\u0456 \u043c\u0430\u044e\u0442\u044c \u0434\u043e\u0441\u0432\u0456\u0434\u0447\u0435\u043d\u0438\u0445 \u0433\u0440\u0430\u0432\u0446\u0456\u0432 \u0456 \u044f\u043a\u0438\u043c \u0442\u0440\u043e\u0445\u0438 \u043f\u043e\u0449\u0430\u0441\u0442\u0438\u043b\u043e, \u0456 \u043c\u0438 \u0431\u0430\u0447\u0438\u043c\u043e \u043d\u0435\u0432\u0434\u0430\u0445, \u044f\u043a\u0456 \u043c\u043e\u0436\u0443\u0442\u044c \u043c\u0430\u0442\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0433\u0440\u0430\u0432\u0446\u0456\u0432, \u0430\u043b\u0435 \u043d\u0435 \u0432\u0438\u0441\u0442\u0430\u0447\u0430\u0454 \u0443\u0434\u0430\u0447\u0456. \u0406 \u043c\u0435\u0442\u0430 \u0446\u044c\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0443 &#8211; \u0437\u0440\u043e\u0437\u0443\u043c\u0456\u0442\u0438 \u0456 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0438 \u0446\u0456 \u0446\u0438\u0444\u0440\u0438, \u0449\u043e\u0431 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u0440\u043e\u043b\u044c \u0443\u0434\u0430\u0447\u0456 \u0432 \u0441\u044c\u043e\u0433\u043e\u0434\u043d\u0456\u0448\u043d\u044c\u043e\u043c\u0443 \u0444\u0443\u0442\u0431\u043e\u043b\u0456. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u043e\u0437\u043f\u043e\u0447\u043d\u0435\u043c\u043e<\/h3>\n\n\n\n<p>\u041c\u0438 \u043f\u043e\u0447\u0438\u043d\u0430\u0454\u043c\u043e \u0437 \u0456\u043c\u043f\u043e\u0440\u0442\u0443 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a, \u044f\u043a\u0456 \u0431\u0443\u0434\u0443\u0442\u044c \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438\u0441\u044f \u0432 \u0446\u044c\u043e\u043c\u0443 \u043f\u0440\u043e\u0435\u043a\u0442\u0456:<\/p>\n\n\n\n<ul><li>numpy &#8211; \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0438\u0439 \u043f\u0430\u043a\u0435\u0442 \u0434\u043b\u044f \u043d\u0430\u0443\u043a\u043e\u0432\u0438\u0445 \u043e\u0431\u0447\u0438\u0441\u043b\u0435\u043d\u044c \u0437 Python<\/li><li>pandas &#8211; \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0430, \u0449\u043e \u0437\u0430\u0431\u0435\u0437\u043f\u0435\u0447\u0443\u0454 \u0432\u0438\u0441\u043e\u043a\u0443 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u0456\u0441\u0442\u044c, \u0437\u0440\u0443\u0447\u043d\u0456\u0441\u0442\u044c \u0443 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u0456 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0434\u0430\u043d\u0438\u0445 \u0442\u0430 \u0456\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0456\u0432 \u0430\u043d\u0430\u043b\u0456\u0437\u0443 \u0434\u0430\u043d\u0438\u0445<\/li><li>requests &#8211; \u0446\u0435 \u0454\u0434\u0438\u043d\u0430 HTTP-\u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0430 \u0431\u0435\u0437 \u0413\u041c\u041e \u0434\u043b\u044f Python, \u0431\u0435\u0437\u043f\u0435\u0447\u043d\u0430 \u0434\u043b\u044f \u0441\u043f\u043e\u0436\u0438\u0432\u0430\u043d\u043d\u044f \u043b\u044e\u0434\u0438\u043d\u043e\u044e. (\u043b\u044e\u0431\u043b\u044e \u0446\u0435\u0439 \u0440\u044f\u0434\u043e\u043a \u0437 \u043e\u0444\u0456\u0446\u0456\u0439\u043d\u0438\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0456\u0457 :D)<\/li><li>BeautifulSoup &#8211; \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0430 Python \u0434\u043b\u044f \u0432\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044f \u0434\u0430\u043d\u0438\u0445 \u0437 \u0444\u0430\u0439\u043b\u0456\u0432 HTML \u0456 XML.<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">import numpy as np <em># \u043b\u0456\u043d\u0456\u0439\u043d\u0430 \u0430\u043b\u0433\u0435\u0431\u0440\u0430<\/em>\nimport pandas as pd <em># \u043e\u0431\u0440\u043e\u0431\u043a\u0430 \u0434\u0430\u043d\u0438\u0445<\/em>\nimport requests\nfrom bs4 import BeautifulSoup<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u0414\u043e\u0441\u043b\u0456\u0434\u0436\u0435\u043d\u043d\u044f \u0441\u0430\u0439\u0442\u0443 \u0442\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u0438\u0445<\/h3>\n\n\n\n<p>\u0423 \u0431\u0443\u0434\u044c-\u044f\u043a\u043e\u043c\u0443 \u0441\u043a\u0440\u0430\u043f\u043f\u0456\u043d\u0433 \u043f\u0440\u043e\u0435\u043a\u0442\u0456 \u043f\u0435\u0440\u0448\u0435, \u0449\u043e \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0440\u043e\u0431\u0438\u0442\u0438, \u0446\u0435 \u0434\u043e\u0441\u043b\u0456\u0434\u0438\u0442\u0438 \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443, \u044f\u043a\u0443 \u0432\u0438 \u0445\u043e\u0447\u0435\u0442\u0435 \u0437\u0447\u0438\u0442\u0430\u0442\u0438, \u0456 \u0437\u0440\u043e\u0437\u0443\u043c\u0456\u0442\u0438, \u044f\u043a \u0432\u043e\u043d\u0430 \u043f\u0440\u0430\u0446\u044e\u0454. \u0426\u0435 \u0454 \u0444\u0443\u043d\u0434\u0430\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u0438\u043c. \u0422\u043e\u043c\u0443 \u043c\u0438 \u043f\u043e\u0447\u0438\u043d\u0430\u0454\u043c\u043e \u0437\u0432\u0456\u0434\u0442\u0438.<\/p>\n\n\n\n<p>\u041d\u0430 \u0434\u043e\u043c\u0430\u0448\u043d\u0456\u0439 \u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456 \u043c\u043e\u0436\u043d\u0430 \u043f\u043e\u043c\u0456\u0442\u0438\u0442\u0438, \u0449\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0456 \u0454 \u0434\u0430\u043d\u0456 \u0434\u043b\u044f 6 \u0454\u0432\u0440\u043e\u043f\u0435\u0439\u0441\u044c\u043a\u0438\u0445 \u043b\u0456\u0433:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"769\" height=\"117\" src=\"http:\/\/35.180.88.53\/wp-content\/uploads\/2019\/06\/leagues.jpg\" alt=\"\" class=\"wp-image-855\" srcset=\"https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/leagues.jpg 769w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/leagues-300x46.jpg 300w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/leagues-768x117.jpg 768w\" sizes=\"(max-width: 769px) 100vw, 769px\" \/><\/figure>\n\n\n\n<ul><li>\u0406\u0441\u043f\u0430\u043d\u0441\u044c\u043a\u0430 \u041b\u0430 \u041b\u0456\u0433\u0430<\/li><li>\u0410\u043d\u0433\u043b\u0456\u0439\u0441\u044c\u043a\u0430 \u041f\u0440\u0435\u043c&#8217;\u0454\u0440 \u041b\u0456\u0433\u0430<\/li><li>\u041d\u0456\u043c\u0435\u0446\u044c\u043a\u0430 \u0411\u0443\u043d\u0434\u0435\u0441 \u041b\u0456\u0433\u0430<\/li><li>\u0406\u0442\u0430\u043b\u0456\u0439\u0441\u044c\u043a\u0430 \u0421\u0435\u0440\u0456\u044f \u0410<\/li><li>\u0424\u0440\u0430\u043d\u0446\u0443\u0437\u044c\u043a\u0430 \u041b\u0456\u0433\u0430 1 <\/li><li>\u0420\u043e\u0441\u0456\u0439\u0441\u044c\u043a\u0430 \u041f\u0440\u0435\u043c&#8217;\u0454\u0440 \u041b\u0456\u0433\u0430 <\/li><\/ul>\n\n\n\n<p>\u0406 \u043c\u0438 \u0442\u0430\u043a\u043e\u0436 \u0431\u0430\u0447\u0438\u043c\u043e, \u0449\u043e \u0437\u0456\u0431\u0440\u0430\u043d\u0456 \u0434\u0430\u043d\u0456 \u043f\u043e\u0447\u0438\u043d\u0430\u044e\u0442\u044c\u0441\u044f \u0437 \u0441\u0435\u0437\u043e\u043d\u0443 2014\/2015. \u0406\u043d\u0448\u0430 \u0437\u0430\u043c\u0456\u0442\u043a\u0430, \u044f\u043a\u0443 \u043c\u0438 \u0440\u043e\u0431\u0438\u043c\u043e, &#8211; \u0446\u0435 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 URL:  \u2018<code>https:\/\/understat.com\/league'<\/code>&nbsp;+ \u2018<code>\/\u043b\u0456\u0433\u0430<\/code>\u2018 + \u2018<code>\/\u0440\u0456\u043a<\/code>\u2018 <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"509\" height=\"299\" src=\"http:\/\/35.180.88.53\/wp-content\/uploads\/2019\/06\/seasons.jpg\" alt=\"\" class=\"wp-image-858\" srcset=\"https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/seasons.jpg 509w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/seasons-300x176.jpg 300w\" sizes=\"(max-width: 509px) 100vw, 509px\" \/><\/figure>\n\n\n\n<p>\u0422\u0430\u043a\u0438\u043c \u0447\u0438\u043d\u043e\u043c, \u043c\u0438 \u0441\u0442\u0432\u043e\u0440\u044e\u0454\u043c\u043e \u0437\u043c\u0456\u043d\u043d\u0456 \u0437 \u0446\u0438\u043c\u0438 \u0434\u0430\u043d\u0438\u043c\u0438, \u0449\u043e\u0431 \u043c\u0430\u0442\u0438 \u043c\u043e\u0436\u043b\u0438\u0432\u0456\u0441\u0442\u044c \u0432\u0438\u0431\u0440\u0430\u0442\u0438 \u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439 \u0441\u0435\u0437\u043e\u043d \u0430\u0431\u043e \u0431\u0443\u0434\u044c-\u044f\u043a\u0443 \u043b\u0456\u0433\u0443.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u0438 urls \u0434\u043b\u044f \u0432\u0441\u0456\u0445 \u0441\u0435\u0437\u043e\u043d\u0456\u0432 \u043a\u043e\u0436\u043d\u043e\u0457 \u0437 \u043b\u0456\u0433<\/em>\nbase_url = 'https:\/\/understat.com\/league'\nleagues = ['La_liga', 'EPL', 'Bundesliga', 'Serie_A', 'Ligue_1', 'RFPL']\nseasons = ['2014', '2015', '2016', '2017', '2018']<\/pre>\n\n\n\n<p>\u041d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u043c \u043a\u0440\u043e\u043a\u043e\u043c \u0454 \u0432\u0438\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u043c\u0456\u0441\u0446\u044f \u0440\u043e\u0437\u0442\u0430\u0448\u0443\u0432\u0430\u043d\u043d\u044f \u0434\u0430\u043d\u0438\u0445 \u043d\u0430 \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u0446\u0456. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0432\u0456\u0434\u043a\u0440\u0438\u0432\u0430\u0454\u043c\u043e \u0406\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u0438 \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0430 \u0432 Chrome, \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c\u043e \u0434\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0438 \u00ab\u041c\u0435\u0440\u0435\u0436\u0430\u00bb, \u0437\u043d\u0430\u0445\u043e\u0434\u0438\u043c\u043e \u0444\u0430\u0439\u043b \u0437 \u0434\u0430\u043d\u0438\u043c\u0438 (\u0443 \u0446\u044c\u043e\u043c\u0443 \u0432\u0438\u043f\u0430\u0434\u043a\u0443 2018) \u0456 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0454\u043c\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0443 \u00ab\u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c\u00bb. \u0426\u0435 \u0441\u0430\u043c\u0435 \u0442\u0435, \u0449\u043e \u043c\u0438 \u043e\u0442\u0440\u0438\u043c\u0430\u0454\u043c\u043e \u043f\u0456\u0441\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0443 <em>request.get(URL)<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"914\" height=\"509\" src=\"http:\/\/35.180.88.53\/wp-content\/uploads\/2019\/06\/requests_response_1.jpg\" alt=\"\" class=\"wp-image-856\" srcset=\"https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/requests_response_1.jpg 914w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/requests_response_1-300x167.jpg 300w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/requests_response_1-768x428.jpg 768w\" sizes=\"(max-width: 914px) 100vw, 914px\" \/><\/figure>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0432\u043c\u0456\u0441\u0442\u0443 \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u043c\u0438 \u0431\u0430\u0447\u0438\u043c\u043e, \u0449\u043e \u0434\u0430\u043d\u0456 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u044e\u0442\u044c\u0441\u044f \u043f\u0456\u0434 \u0442\u0435\u0433\u043e\u043c &#8220;script&#8221; \u0456 \u0432 JSON-\u0456. \u0422\u043e\u043c\u0443 \u043d\u0430\u043c \u0437\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0437\u043d\u0430\u0439\u0442\u0438 \u0446\u0435\u0439 \u0442\u0435\u0433, \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 JSON \u0437 \u043d\u044c\u043e\u0433\u043e \u0456 \u043f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0439\u043e\u0433\u043e \u0432 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0434\u0430\u043d\u0438\u0445 Python.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"683\" height=\"144\" src=\"http:\/\/35.180.88.53\/wp-content\/uploads\/2019\/06\/requests_response_2.jpg\" alt=\"\" class=\"wp-image-857\" srcset=\"https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/requests_response_2.jpg 683w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/requests_response_2-300x63.jpg 300w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">url = base_url+'\/'+leagues[0]+'\/'+seasons[4]\nres = requests.get(url)\nsoup = BeautifulSoup(res.content, \"lxml\")\n\nscripts = soup.find_all('script')<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u0420\u043e\u0431\u043e\u0442\u0430 \u0437 JSON<\/h3>\n\n\n\n<p>\u041c\u0438 \u0432\u0438\u044f\u0432\u0438\u043b\u0438, \u0449\u043e \u043d\u0435\u043e\u0431\u0445\u0456\u0434\u043d\u0456 \u043d\u0430\u043c \u0434\u0430\u043d\u0456 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u044e\u0442\u044c\u0441\u044f \u0432 teamsData \u0437\u043c\u0456\u043d\u043d\u0456\u0439, \u043f\u0456\u0441\u043b\u044f \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0441\u0443\u043f\u0443 html \u0442\u0435\u0433\u0456\u0432 \u0432\u043e\u043d\u0430 \u0441\u0442\u0430\u0454 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u044f\u0434\u043a\u043e\u043c, \u0442\u043e\u043c\u0443 \u043c\u0438 \u0437\u043d\u0430\u0445\u043e\u0434\u0438\u043c\u043e \u0446\u0435\u0439 \u0442\u0435\u043a\u0441\u0442 \u0456 \u0432\u0438\u0442\u044f\u0433\u0443\u0454\u043c\u043e \u0437 \u043d\u044c\u043e\u0433\u043e JSON.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import json\n\nstring_with_json_obj = ''\n\n<em># Find data for teams<\/em>\nfor el <strong>in<\/strong> scripts:\n    if 'teamsData' <strong>in<\/strong> str(el):\n      string_with_json_obj = str(el).strip()\n      \n<em># print(string_with_json_obj)<\/em>\n\n<em># strip unnecessary symbols and get only JSON data<\/em>\nind_start = string_with_json_obj.index(\"('\")+2\nind_end = string_with_json_obj.index(\"')\")\njson_data = string_with_json_obj[ind_start:ind_end]\n\njson_data = json_data.encode('utf8').decode('unicode_escape')<\/pre>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f \u0442\u043e\u0433\u043e \u044f\u043a \u043c\u0438 \u043e\u0442\u0440\u0438\u043c\u0430\u043b\u0438 \u043d\u0430\u0448 JSON \u0456 \u043e\u0447\u0438\u0441\u0442\u0438\u043b\u0438 \u0439\u043e\u0433\u043e, \u043c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u043f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0439\u043e\u0433\u043e \u0432 \u0441\u043b\u043e\u0432\u043d\u0438\u043a Python \u0456 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438, \u044f\u043a \u0432\u0456\u043d \u0432\u0438\u0433\u043b\u044f\u0434\u0430\u0454 (\u0437\u0430\u043a\u043e\u043c\u0435\u043d\u0442\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u0440\u0456\u043d\u0442).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u0420\u043e\u0437\u0443\u043c\u0456\u043d\u043d\u044f \u0434\u0430\u043d\u0438\u0445 \u0437 Python<\/h3>\n\n\n\n<p>\u041a\u043e\u043b\u0438 \u043c\u0438 \u043f\u043e\u0447\u0438\u043d\u0430\u0454\u043c\u043e \u0434\u043e\u0441\u043b\u0456\u0434\u0436\u0443\u0432\u0430\u0442\u0438 \u0434\u0430\u043d\u0456, \u043c\u0438 \u0440\u043e\u0437\u0443\u043c\u0456\u0454\u043c\u043e, \u0449\u043e \u0446\u0435 \u0441\u043b\u043e\u0432\u043d\u0438\u043a \u0441\u043b\u043e\u0432\u043d\u0438\u043a\u0456\u0432 \u0437 3-\u0445 \u043a\u043b\u044e\u0447\u0456\u0432: id, title \u0456 history. \u041f\u0435\u0440\u0448\u0438\u0439 \u0448\u0430\u0440 \u0441\u043b\u043e\u0432\u043d\u0438\u043a\u0430 \u0442\u0430\u043a\u043e\u0436 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454 \u0456\u0434\u0435\u043d\u0442\u0438\u0444\u0456\u043a\u0430\u0442\u043e\u0440\u0438 \u044f\u043a \u043a\u043b\u044e\u0447\u0456.<\/p>\n\n\n\n<p>\u0422\u0430\u043a\u043e\u0436 \u0437 \u0446\u044c\u043e\u0433\u043e \u043c\u0438 \u0440\u043e\u0437\u0443\u043c\u0456\u0454\u043c\u043e, \u0449\u043e history \u043c\u0430\u0454 \u0434\u0430\u043d\u0456 \u043f\u0440\u043e \u043a\u043e\u0436\u043d\u0438\u0439 \u043c\u0430\u0442\u0447, \u044f\u043a\u0438\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0456\u0433\u0440\u0430\u043b\u0430 \u0443 \u0441\u0432\u043e\u0457\u0439 \u043b\u0456\u0437\u0456 (\u041a\u0443\u0431\u043e\u043a \u041b\u0456\u0433\u0438 \u0430\u0431\u043e \u0456\u0433\u0440\u0438 \u041b\u0456\u0433\u0438 \u0447\u0435\u043c\u043f\u0456\u043e\u043d\u0456\u0432 \u043d\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0456).<\/p>\n\n\n\n<p>\u041c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u0437\u0456\u0431\u0440\u0430\u0442\u0438 \u043d\u0430\u0437\u0432\u0438 \u043a\u043e\u043c\u0430\u043d\u0434 \u0456\u0437 \u043f\u0435\u0440\u0448\u043e\u0433\u043e \u0448\u0430\u0440\u0443 \u0441\u043b\u043e\u0432\u043d\u0438\u043a\u0430.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># Get teams and their relevant ids and put them into separate dictionary<\/em>\nteams = {}\nfor id <strong>in<\/strong> data.keys():\n  teams[id] = data[id]['title']<\/pre>\n\n\n\n<p>History &#8211; \u0446\u0435 \u043c\u0430\u0441\u0438\u0432 \u0441\u043b\u043e\u0432\u043d\u0438\u043a\u0456\u0432, \u0434\u0435 \u043a\u043b\u044e\u0447\u0456 &#8211; \u0446\u0435 \u043d\u0430\u0437\u0432\u0438 \u043c\u0435\u0442\u0440\u0438\u043a (\u0447\u0438\u0442\u0430\u0439 \u043d\u0430\u0437\u0432\u0438 \u0441\u0442\u043e\u0432\u043f\u0447\u0438\u043a\u0456\u0432), \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f &#8211; \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f, \u043d\u0435\u0437\u0432\u0430\u0436\u0430\u044e\u0447\u0438 \u043d\u0430 \u0442\u0435, \u043d\u0430\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0442\u0430\u0432\u0442\u043e\u043b\u043e\u0433\u0456\u0447\u043d\u043e \u0446\u0435 \u0437\u0432\u0443\u0447\u0438\u0442\u044c :D.<\/p>\n\n\n\n<p>\u041c\u0438 \u0440\u043e\u0437\u0443\u043c\u0456\u0454\u043c\u043e, \u0449\u043e \u0456\u043c\u0435\u043d\u0430 \u0441\u0442\u043e\u0432\u043f\u0446\u0456\u0432 \u043f\u043e\u0432\u0442\u043e\u0440\u044e\u044e\u0442\u044c\u0441\u044f \u0437\u043d\u043e\u0432\u0443 \u0456 \u0437\u043d\u043e\u0432\u0443, \u0442\u043e\u043c\u0443 \u043c\u0438 \u0434\u043e\u0434\u0430\u0454\u043c\u043e \u0457\u0445 \u0434\u043e \u043e\u043a\u0440\u0435\u043c\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0443. \u0422\u0430\u043a\u043e\u0436 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0454\u043c\u043e, \u044f\u043a \u0432\u0438\u0433\u043b\u044f\u0434\u0430\u044e\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u0438\u0431\u0456\u0440\u043a\u0438.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># EDA to get a feeling of how the JSON is structured<\/em>\n<em># Column names are all the same, so we just use first element<\/em>\ncolumns = []\n<em># Check the sample of values per each column<\/em>\nvalues = []\nfor id <strong>in<\/strong> data.keys():\n  columns = list(data[id]['history'][0].keys())\n  values = list(data[id]['history'][0].values())\n  break<\/pre>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f \u043f\u043e\u0432\u0435\u0440\u0445\u043e\u0432\u043e\u0433\u043e \u0441\u043a\u0430\u043d\u0443\u0432\u0430\u043d\u043d\u044f \u0434\u0430\u043d\u0438\u0445 \u043c\u0438 \u0431\u0430\u0447\u0438\u043c\u043e, \u0449\u043e \u0443 \u0421\u0435\u0432\u0456\u043b\u044c\u044f \u043c\u0430\u0454 id = 138, \u0442\u043e\u043c\u0443 \u043e\u0442\u0440\u0438\u043c\u0443\u0454\u043c\u043e \u0432\u0441\u0456 \u0434\u0430\u043d\u0456 \u0434\u043b\u044f \u0446\u0456\u0454\u0457 \u043a\u043e\u043c\u0430\u043d\u0434\u0438, \u0449\u043e\u0431 \u043c\u0430\u0442\u0438 \u0437\u043c\u043e\u0433\u0443 \u0432\u0456\u0434\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0442\u0456 \u0441\u0430\u043c\u0456 \u043a\u0440\u043e\u043a\u0438 \u0434\u043b\u044f \u0432\u0441\u0456\u0445 \u043a\u043e\u043c\u0430\u043d\u0434 \u0443 \u043b\u0456\u0437\u0456.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sevilla_data = []\nfor row <strong>in<\/strong> data['138']['history']:\n  sevilla_data.append(list(row.values()))\n  \ndf = pd.DataFrame(sevilla_data, columns=columns)<\/pre>\n\n\n\n<p>\u0417\u0430\u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0449\u043e\u0431 \u0437\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0446\u044e \u0441\u0442\u0430\u0442\u0442\u044e \u0447\u0438\u0441\u0442\u043e\u044e, \u044f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0434\u043e\u0434\u0430\u0432\u0430\u0442\u0438 \u0432\u043c\u0456\u0441\u0442 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043e\u0457 DataFrame, \u0430\u043b\u0435 \u0432 \u043a\u0456\u043d\u0446\u0456 \u0432\u0438 \u0437\u043d\u0430\u0439\u0434\u0435\u0442\u0435 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u043d\u0430 IPython Notebooks \u043d\u0430 Github \u0456 Kaggle \u0437 \u0443\u0441\u0456\u043c \u043a\u043e\u0434\u043e\u043c \u0442\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c\u0438. \u0422\u0443\u0442 \u0442\u0456\u043b\u044c\u043a\u0438 \u0437\u0440\u0430\u0437\u043a\u0438 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0443.<\/p>\n\n\n\n<p>\u041e\u0442\u043e\u0436, \u0432\u0443\u0430\u043b\u044f, \u0432\u0456\u0442\u0430\u043d\u043d\u044f! \u0423 \u043d\u0430\u0441 \u0454 \u0434\u0430\u043d\u0456 \u0434\u043b\u044f \u0432\u0441\u0456\u0445 \u043c\u0430\u0442\u0447\u0456\u0432 \u0421\u0435\u0432\u0456\u043b\u044c\u0457 \u0432 \u0441\u0435\u0437\u043e\u043d\u0456 2018-2019 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 La Liga! \u0422\u0435\u043f\u0435\u0440 \u043c\u0438 \u0445\u043e\u0447\u0435\u043c\u043e \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0446\u0456 \u0434\u0430\u043d\u0456 \u0434\u043b\u044f \u0432\u0441\u0456\u0445 \u0456\u0441\u043f\u0430\u043d\u0441\u044c\u043a\u0438\u0445 \u043a\u043e\u043c\u0430\u043d\u0434. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0431\u0456\u0436\u0438\u043c\u043e\u0441\u044f \u043f\u043e \u0434\u0430\u043d\u0438\u0445!<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><em># Getting data for all teams<\/em>\ndataframes = {}\nfor id, team <strong>in<\/strong> teams.items():\n  teams_data = []\n  for row <strong>in<\/strong> data[id]['history']:\n    teams_data.append(list(row.values()))\n    \n  df = pd.DataFrame(teams_data, columns=columns)\n  dataframes[team] = df\n  print('Added data for <strong>{}<\/strong>.'.format(team))<\/pre>\n\n\n\n<p>\u041f\u0456\u0441\u043b\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u044f \u0432\u0438\u043a\u043e\u043d\u0430\u043d\u043d\u044f \u0446\u044c\u043e\u0433\u043e \u043a\u043e\u0434\u0443 \u043c\u0438 \u043c\u0430\u0454\u043c\u043e \u0441\u043b\u043e\u0432\u043d\u0438\u043a DataFrames, \u0434\u0435 \u043a\u043b\u044e\u0447\u0435\u043c \u0454 \u0456\u043c&#8217;\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0438, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c &#8211; DataFrame \u0437 \u0443\u0441\u0456\u043c\u0430 \u043f\u043e\u0454\u0434\u0438\u043d\u043a\u0430\u043c\u0438 \u0446\u0456\u0454\u0457 \u043a\u043e\u043c\u0430\u043d\u0434\u0438.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041c\u0430\u043d\u0456\u043f\u0443\u043b\u044f\u0446\u0456\u0457 \u0434\u043b\u044f \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0434\u0430\u043d\u0438\u0445 \u044f\u043a \u0443 \u0432\u0438\u0445\u0456\u0434\u043d\u043e\u043c\u0443 \u0434\u0436\u0435\u0440\u0435\u043b\u0456<\/h3>\n\n\n\n<p>\u041a\u043e\u043b\u0438 \u043c\u0438 \u0434\u0438\u0432\u0438\u043c\u043e\u0441\u044f \u043d\u0430 \u0432\u043c\u0456\u0441\u0442 DataFrame, \u043c\u043e\u0436\u043d\u0430 \u043f\u043e\u043c\u0456\u0442\u0438\u0442\u0438, \u0449\u043e \u0442\u0430\u043a\u0456 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u044f\u043a PPDA \u0456 OPPDA (ppda \u0456 ppda_allowed), \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0456 \u044f\u043a \u0437\u0430\u0433\u0430\u043b\u044c\u043d\u0456 \u0441\u0443\u043c\u0438 \u0430\u0442\u0430\u043a\u0443\u044e\u0447\u0438\u0445 \/ \u043e\u0431\u043e\u0440\u043e\u043d\u043d\u0438\u0445 \u0434\u0456\u0439, \u0430\u043b\u0435 \u0432 \u043f\u043e\u0447\u0430\u0442\u043a\u043e\u0432\u0456\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0456 \u0446\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u044f\u043a \u043a\u043e\u0435\u0444\u0456\u0446\u0456\u0454\u043d\u0442\u0438. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0446\u0435 \u0432\u0438\u043f\u0440\u0430\u0432\u0438\u043c\u043e.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">for team, df <strong>in<\/strong> dataframes.items():\n  dataframes[team]['ppda_coef'] = dataframes[team]['ppda'].apply(lambda x: x['att']\/x['def'] if x['def'] != 0 else 0)\n  dataframes[team]['oppda_coef'] = dataframes[team]['ppda_allowed'].apply(lambda x: x['att']\/x['def'] if x['def'] != 0 else 0)<\/pre>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440 \u0443 \u043d\u0430\u0441 \u0454 \u0432\u0441\u0456 \u043d\u0430\u0448\u0456 \u0447\u0438\u0441\u043b\u0430, \u0430\u043b\u0435 \u0434\u043b\u044f \u043a\u043e\u0436\u043d\u043e\u0457 \u043e\u043a\u0440\u0435\u043c\u043e\u0457 \u0433\u0440\u0438. \u041d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0456 \u043f\u0456\u0434\u0441\u0443\u043c\u043a\u0438 \u0434\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0438. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0437\u043d\u0430\u0439\u0434\u0435\u043c\u043e \u0441\u0442\u043e\u0432\u043f\u0446\u0456, \u044f\u043a\u0456 \u043c\u0438 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u043f\u0456\u0434\u0441\u0443\u043c\u0443\u0432\u0430\u0442\u0438. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u043c\u0438 \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u0454\u043c\u043e\u0441\u044f \u0434\u043e \u043e\u0440\u0438\u0433\u0456\u043d\u0430\u043b\u044c\u043d\u043e\u0457 \u0442\u0430\u0431\u043b\u0438\u0446\u0456 \u043d\u0430 <a href=\"https:\/\/understat.com\/league\/La_liga\/2018\">understat.com<\/a> \u0456 \u0432\u0438\u044f\u0432\u043b\u044f\u0454\u043c\u043e, \u0449\u043e \u0432\u0441\u0456 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u0431\u0443\u0442\u0438 \u0441\u0443\u043c\u0430\u043c\u0438 \u0456 \u0442\u0456\u043b\u044c\u043a\u0438 PPDA \u0456 OPPDA \u0454 \u0441\u0435\u0440\u0435\u0434\u043d\u0456\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u043c\u0438.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cols_to_sum = ['xG', 'xGA', 'npxG', 'npxGA', 'deep', 'deep_allowed', 'scored', 'missed', 'xpts', 'wins', 'draws', 'loses', 'pts', 'npxGD']\ncols_to_mean = ['ppda_coef', 'oppda_coef']<\/pre>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440 \u043c\u0438 \u0433\u043e\u0442\u043e\u0432\u0456 \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 \u043d\u0430\u0448\u0456 \u0441\u0443\u043c\u0438 \u0442\u0430 \u0441\u0435\u0440\u0435\u0434\u043d\u0456. \u0414\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u043c\u0438 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0446\u0438\u043a\u043b\u0443 \u0447\u0435\u0440\u0435\u0437 \u0441\u043b\u043e\u0432\u043d\u0438\u043a dataframe-\u0456\u0432 \u0456 \u0432\u0438\u043a\u043b\u0438\u043a\u0430\u0454\u043c\u043e .sum() \u0456 .mean() DataFrame \u043c\u0435\u0442\u043e\u0434\u0438, \u044f\u043a\u0456 \u043f\u043e\u0432\u0435\u0440\u0442\u0430\u044e\u0442\u044c Series, \u0442\u043e\u043c\u0443 \u043c\u0438 \u0434\u043e\u0434\u0430\u0454\u043c\u043e .transpose() \u0434\u043e \u0446\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u0456\u0432. \u041c\u0438 \u043f\u043e\u043c\u0456\u0449\u0430\u0454\u043c\u043e \u0446\u0456 \u043d\u043e\u0432\u0456 DataFrames \u0443 \u0441\u043f\u0438\u0441\u043e\u043a \u0456 \u043f\u0456\u0441\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0457\u0445 \u043e\u0431&#8217;\u0454\u0434\u043d\u0443\u0454\u043c\u043e \u0432 \u043d\u043e\u0432\u0443 DataFrame full_stat.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">frames = []\nfor team, df <strong>in<\/strong> dataframes.items():\n  sum_data = pd.DataFrame(df[cols_to_sum].sum()).transpose()\n  mean_data = pd.DataFrame(df[cols_to_mean].mean()).transpose()\n  final_df = sum_data.join(mean_data)\n  final_df['team'] = team\n  final_df['matches'] = len(df)\n  frames.append(final_df)\n  \nfull_stat = pd.concat(frames)<\/pre>\n\n\n\n<p>\u0414\u0430\u043b\u0456 \u043f\u0435\u0440\u0435\u0432\u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u0443\u0454\u043c\u043e \u0441\u0442\u043e\u0432\u043f\u0446\u0456 \u0434\u043b\u044f \u043a\u0440\u0430\u0449\u043e\u0457 \u0447\u0438\u0442\u0430\u043d\u043e\u0441\u0442\u0456, \u0441\u043e\u0440\u0442\u0443\u0454\u043c\u043e \u0440\u044f\u0434\u043a\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0456 \u0442\u0443\u0440\u043d\u0456\u0440\u043d\u0438\u0445 \u0431\u0430\u043b\u0456\u0432, \u0441\u043a\u0438\u0434\u0430\u0454\u043c\u043e \u0456\u043d\u0434\u0435\u043a\u0441 \u0456 \u0434\u043e\u0434\u0430\u0454\u043c\u043e \u0441\u0442\u043e\u0432\u043f\u0435\u0446\u044c &#8220;\u043f\u043e\u0437\u0438\u0446\u0456\u044f&#8221;.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">full_stat = full_stat[['team', 'matches', 'wins', 'draws', 'loses', 'scored', 'missed', 'pts', 'xG', 'npxG', 'xGA', 'npxGA', 'npxGD', 'ppda_coef', 'oppda_coef', 'deep', 'deep_allowed', 'xpts']]\nfull_stat.sort_values('pts', ascending=False, inplace=True)\nfull_stat.reset_index(inplace=True, drop=True)\nfull_stat['position'] = range(1,len(full_stat)+1)<\/pre>\n\n\n\n<p>\u0422\u0430\u043a\u043e\u0436 \u0443 \u0432\u0438\u0445\u0456\u0434\u043d\u0456\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0456 \u043c\u0438 \u043c\u0430\u0454\u043c\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0432\u0456\u0434\u043c\u0456\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u043c\u0456\u0436 \u043e\u0447\u0456\u043a\u0443\u0432\u0430\u043d\u0438\u043c\u0438 \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c\u0438 \u0442\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u0438\u043c\u0438. \u0414\u043e\u0434\u0430\u043c\u043e \u0457\u0445 \u0442\u0435\u0436.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">full_stat['xG_diff'] = full_stat['xG'] - full_stat['scored']\nfull_stat['xGA_diff'] = full_stat['xGA'] - full_stat['missed']\nfull_stat['xpts_diff'] = full_stat['xpts'] - full_stat['pts']<\/pre>\n\n\n\n<p>\u041f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f float \u0443 \u0446\u0456\u043b\u0456 \u0447\u0438\u0441\u043b\u0430, \u0434\u0435 \u0446\u0435 \u0434\u043e\u0440\u0435\u0447\u043d\u043e.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cols_to_int = ['wins', 'draws', 'loses', 'scored', 'missed', 'pts', 'deep', 'deep_allowed']\nfull_stat[cols_to_int] = full_stat[cols_to_int].astype(int)<\/pre>\n\n\n\n<p>\u041e\u0441\u0442\u0430\u043d\u043d\u0456 \u043c\u0430\u0437\u043a\u0438 \u0434\u043b\u044f \u043a\u0440\u0430\u0449\u043e\u0433\u043e \u0432\u0438\u0433\u043b\u044f\u0434\u0443 DataFrame.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">col_order = ['position','team', 'matches', 'wins', 'draws', 'loses', 'scored', 'missed', 'pts', 'xG', 'xG_diff', 'npxG', 'xGA', 'xGA_diff', 'npxGA', 'npxGD', 'ppda_coef', 'oppda_coef', 'deep', 'deep_allowed', 'xpts', 'xpts_diff']\nfull_stat = full_stat[col_order]\nfull_stat.columns = ['#', 'team', 'M', 'W', 'D', 'L', 'G', 'GA', 'PTS', 'xG', 'xG_diff', 'NPxG', 'xGA', 'xGA_diff', 'NPxGA', 'NPxGD', 'PPDA', 'OPPDA', 'DC', 'ODC', 'xPTS', 'xPTS_diff']\npd.options.display.float_format = '<strong>{:,.2f}<\/strong>'.format\nfull_stat.head(10)<\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"314\" src=\"http:\/\/35.180.88.53\/wp-content\/uploads\/2019\/06\/collab-1024x314.jpg\" alt=\"\" class=\"wp-image-860\" srcset=\"https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/collab-1024x314.jpg 1024w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/collab-300x92.jpg 300w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/collab-768x236.jpg 768w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/collab.jpg 1262w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><figcaption>\u0422\u0430\u043a \u0432\u043e\u043d\u043e \u0432\u0438\u0433\u043b\u044f\u0434\u0430\u0454 \u0432 \u041a\u043e\u043b\u0430\u0431\u043e\u0440\u0430\u0442\u043e\u0440\u0456<\/figcaption><\/figure>\n\n\n\n<p>\u041e\u0440\u0438\u0433\u0456\u043d\u0430\u043b\u044c\u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u044f:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"660\" src=\"http:\/\/35.180.88.53\/wp-content\/uploads\/2019\/06\/full_table-1024x660.jpg\" alt=\"\" class=\"wp-image-854\" srcset=\"https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/full_table-1024x660.jpg 1024w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/full_table-300x193.jpg 300w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/full_table-768x495.jpg 768w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/full_table.jpg 1283w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440, \u043a\u043e\u043b\u0438 \u043c\u0438 \u043e\u0442\u0440\u0438\u043c\u0430\u043b\u0438 \u043d\u0430\u0448\u0456 \u0434\u0430\u043d\u0456 \u0437\u0430 \u043e\u0434\u0438\u043d \u0441\u0435\u0437\u043e\u043d \u0437 \u043e\u0434\u043d\u0456\u0454\u0457 \u043b\u0456\u0433\u0438, \u043c\u0438 \u043c\u043e\u0436\u0435\u043c\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0438 \u043a\u043e\u0434 \u0456 \u043f\u043e\u043a\u043b\u0430\u0441\u0442\u0438 \u0439\u043e\u0433\u043e \u0432 \u0446\u0438\u043a\u043b, \u0449\u043e\u0431 \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0432\u0441\u0456 \u0434\u0430\u043d\u0456 \u0437\u0430 \u0432\u0441\u0456 \u0441\u0435\u0437\u043e\u043d\u0438 \u0432\u0441\u0456\u0445 \u043b\u0456\u0433. \u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u0440\u043e\u0437\u043c\u0456\u0449\u0443\u0432\u0430\u0442\u0438 \u0446\u0435\u0439 \u043a\u043e\u0434 \u0442\u0443\u0442, \u0430\u043b\u0435 \u0437\u0430\u043b\u0438\u0448\u0443 \u043f\u043e\u0441\u0438\u043b\u0430\u043d\u043d\u044f \u043d\u0430 \u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0435 \u0440\u0456\u0448\u0435\u043d\u043d\u044f \u0432 <a href=\"https:\/\/github.com\/slehkyi\/notebooks-for-articles\/blob\/master\/web_scrapping_understatcom_for_xG_dataset.ipynb\">Github<\/a> \u0456 <a href=\"https:\/\/www.kaggle.com\/slehkyi\/web-scraping-football-statistics-2014-now?scriptVersionId=16171675\">Kaggle<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u041e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u0438\u0439 \u0434\u0430\u0442\u0430\u0441\u0435\u0442<\/h3>\n\n\n\n<p>\u041f\u0440\u043e\u0439\u0448\u043e\u0432\u0448\u0438\u0441\u044c \u043f\u043e \u0432\u0441\u0456\u0445 \u043b\u0456\u0433\u0430\u0445 \u0432\u0441\u0456\u0445 \u0441\u0435\u0437\u043e\u043d\u0456\u0432 \u0456 \u0434\u0435\u043a\u0456\u043b\u044c\u043a\u043e\u0445 \u043a\u0440\u043e\u043a\u0456\u0432 \u043c\u0430\u043d\u0456\u043f\u0443\u043b\u044f\u0446\u0456\u0457, \u0449\u043e\u0431 \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0434\u0430\u043d\u0456, \u044f\u043a\u0456 \u043c\u043e\u0436\u043d\u0430 \u0435\u043a\u0441\u043f\u043e\u0440\u0442\u0443\u0432\u0430\u0442\u0438, \u0432 \u043c\u0435\u043d\u0435 \u0432\u0438\u0439\u0448\u043e\u0432 \u043e\u0441\u044c \u0442\u0430\u043a\u0438\u0439-\u043e\u0442 \u0444\u0430\u0439\u043b CSV \u0456\u0437 \u0437\u0456\u0431\u0440\u0430\u043d\u0438\u043c\u0438 \u0434\u0430\u043d\u0438\u043c\u0438. \u0414\u0430\u0442\u0430\u0441\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 <a href=\"https:\/\/www.kaggle.com\/slehkyi\/extended-football-stats-for-european-leagues-xg\">\u0442\u0443\u0442<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"216\" src=\"http:\/\/35.180.88.53\/wp-content\/uploads\/2019\/06\/banner-1024x216.jpg\" alt=\"\" class=\"wp-image-861\" srcset=\"https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/banner-1024x216.jpg 1024w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/banner-300x63.jpg 300w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/banner-768x162.jpg 768w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/banner-1600x337.jpg 1600w, https:\/\/www.sergilehkyi.com\/wp-content\/uploads\/2019\/06\/banner.jpg 1900w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u0412\u0438\u0441\u043d\u043e\u0432\u043a\u0438<\/h3>\n\n\n\n<p>\u0421\u043f\u043e\u0434\u0456\u0432\u0430\u044e\u0441\u044f, \u0446\u0435 \u0431\u0443\u043b\u043e \u043a\u043e\u0440\u0438\u0441\u043d\u043e \u0456 \u0432\u0438 \u043e\u0442\u0440\u0438\u043c\u0430\u043b\u0438 \u0434\u0435\u044f\u043a\u0443 \u0446\u0456\u043d\u043d\u0443 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044e. \u0423 \u0432\u0441\u044f\u043a\u043e\u043c\u0443 \u0440\u0430\u0437\u0456, \u044f\u043a\u0449\u043e \u0432\u0438 \u0434\u043e\u0441\u044f\u0433\u043b\u0438 \u0446\u044c\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0443, \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0447\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u0438 \u0441\u043f\u0430\u0441\u0438\u0431\u0456 \u0437\u0430 \u0447\u0438\u0442\u0430\u043d\u043d\u044f, \u0437\u0430 \u0442\u0435, \u0449\u043e \u0432\u0438 \u0432\u0438\u0434\u0456\u043b\u0438\u043b\u0438 \u0441\u0432\u0456\u0439 \u0447\u0430\u0441, \u0435\u043d\u0435\u0440\u0433\u0456\u044e \u0456 \u0443\u0432\u0430\u0433\u0443 \u043d\u0430 \u043c\u043e\u0457 5 \u0446\u0435\u043d\u0442\u0456\u0432\u0431 \u0430 \u0449\u0435 \u0431\u0430\u0436\u0430\u044e \u0432\u0430\u043c \u0431\u0430\u0433\u0430\u0442\u043e \u043b\u044e\u0431\u043e\u0432\u0456 \u0456 \u0449\u0430\u0441\u0442\u044f. \u0422\u0438 \u043a\u0440\u0443\u0442\u0438\u0439!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041e\u0441\u0442\u0430\u043d\u043d\u0456\u043c \u0447\u0430\u0441\u043e\u043c \u044f \u0432\u0441\u0435 \u043e\u0431\u0433\u043e\u0432\u043e\u0440\u044e\u0432\u0430\u0432 \u0440\u043e\u043b\u044c \u0443\u0434\u0430\u0447\u0456 \u0443 \u0444\u0443\u0442\u0431\u043e\u043b\u0456. \u0410 \u043c\u043e\u0436\u0435, \u0446\u0435 \u043d\u0435 \u0447\u0438\u0441\u0442\u0430 \u0443\u0434\u0430\u0447\u0430, \u0430 \u043c\u0430\u0439\u0441\u0442\u0435\u0440\u043d\u0456\u0441\u0442\u044c? \u0427\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0437\u0430\u0432\u043e\u0439\u043e\u0432\u0443\u044e\u0442\u044c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":863,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,11],"tags":[],"translation":{"provider":"WPGlobus","version":"3.0.0","language":"uk","enabled_languages":["gb","es","uk"],"languages":{"gb":{"title":true,"content":true,"excerpt":false},"es":{"title":true,"content":true,"excerpt":false},"uk":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/posts\/859"}],"collection":[{"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/comments?post=859"}],"version-history":[{"count":17,"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":1184,"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/posts\/859\/revisions\/1184"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/media\/863"}],"wp:attachment":[{"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/media?parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/categories?post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sergilehkyi.com\/uk\/wp-json\/wp\/v2\/tags?post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}