{"id":358065,"date":"2024-05-21T00:03:51","date_gmt":"2024-05-21T00:03:51","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=358065"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=358065","title":{"rendered":"<span>\u0418\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u044b\u043d\u043e\u0447\u043d\u043e\u0439 \u043a\u043e\u0440\u0437\u0438\u043d\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0440\u043e\u0437\u043d\u0438\u0447\u043d\u043e\u0439 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \u0432 \u0421\u0442\u0430\u043c\u0431\u0443\u043b\u0435<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/d26\/205\/65d\/d2620565dcc8ba2a6e90e2156c897c57.jpg\" width=\"1280\" height=\"698\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d26\/205\/65d\/d2620565dcc8ba2a6e90e2156c897c57.jpg\" data-blurred=\"true\"\/><\/figure>\n<div class=\"persona\"><img decoding=\"async\" class=\"image persona__image\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/dee\/d1e\/c22\/deed1ec2279068171bc3357e9d9aac65.jpg\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dee\/d1e\/c22\/deed1ec2279068171bc3357e9d9aac65.jpg\" data-blurred=\"true\"\/><\/p>\n<h5 class=\"persona__heading\">\u0410\u0432\u0442\u043e\u0440 \u0441\u0442\u0430\u0442\u044c\u0438: \u0416\u0430\u043d\u043d\u0430 \u0411\u043e\u0442\u0430\u0448\u0435\u0432\u0430<\/h5>\n<p>\u0412\u044b\u043f\u0443\u0441\u043a\u043d\u0438\u0446\u0430 \u043a\u0443\u0440\u0441\u0430 Machine Learning. Basic<\/p>\n<\/div>\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u0412\u043e\u0442 \u0438 \u044f \u0434\u043e\u0431\u0440\u0430\u043b\u0430\u0441\u044c \u0434\u043e \u0425\u0430\u0431\u0440\u0430 :).<\/p>\n<p>\u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u0443\u0440\u0441\u0430 OTUS <a href=\"https:\/\/otus.pw\/xahh\/\">&#171;Machine Learning.Basic&#187;<\/a>. <\/p>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430\u0441 \u0436\u0434\u0435\u0442 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u0435 \u0432 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0438\u0440 \u0448\u043e\u043f\u0438\u043d\u0433\u0430 \u0432 \u0421\u0442\u0430\u043c\u0431\u0443\u043b\u0435! <\/p>\n<p>\u0426\u0435\u043b\u044c\u044e \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044f\u0445 \u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u0445 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0432 \u0421\u0442\u0430\u043c\u0431\u0443\u043b\u0435 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u042f\u0437\u044b\u043a\u043e\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u044b\u0441\u0442\u0443\u043f\u0438\u043b Python, \u0441\u0440\u0435\u0434\u043e\u0439 &#8212;\u00a0Jupyter Notebook (anaconda3).<\/p>\n<p>\u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u0445 \u0432 10 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0445 \u0446\u0435\u043d\u0442\u0440\u0430\u0445 \u0432 \u043f\u0435\u0440\u0438\u043e\u0434 \u0441 2021 \u043f\u043e 2023 \u0433\u043e\u0434. \u0414\u0430\u0442\u0430\u0441\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f \u0438 \u043f\u043e\u043b\u043e\u0432, \u0447\u0442\u043e \u0434\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0430\u0445 \u0432 \u0421\u0442\u0430\u043c\u0431\u0443\u043b\u0435. \u041d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0432\u0430\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0442\u0430\u043a\u0443\u044e \u200b\u200b\u043a\u0430\u043a \u043d\u043e\u043c\u0435\u0440\u0430 \u0441\u0447\u0435\u0442\u043e\u0432, \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u0432\u043e\u0437\u0440\u0430\u0441\u0442, \u043f\u043e\u043b, \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043e\u043f\u043b\u0430\u0442\u044b, \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e, \u0446\u0435\u043d\u0430, \u0434\u0430\u0442\u044b \u0437\u0430\u043a\u0430\u0437\u0430 \u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0445 \u0446\u0435\u043d\u0442\u0440\u043e\u0432.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b46\/cde\/aab\/b46cdeaab2e84a9be5ecb1c8c718ce68.png\" width=\"974\" height=\"281\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b46\/cde\/aab\/b46cdeaab2e84a9be5ecb1c8c718ce68.png\"\/><\/figure>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/882\/214\/208\/8822142081c71c768bad1afe537e5d71.png\" width=\"748\" height=\"523\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/882\/214\/208\/8822142081c71c768bad1afe537e5d71.png\"\/><\/figure>\n<ul>\n<li>\n<p><code>invoice_no<\/code>: \u041d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><code>customer_id<\/code>: \u041d\u043e\u043c\u0435\u0440 \u043a\u043b\u0438\u0435\u043d\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><code>gender<\/code>: \u041f\u043e\u043b.<\/p>\n<\/li>\n<li>\n<p><code>age<\/code>: \u0412\u043e\u0437\u0440\u0430\u0441\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><code>category<\/code>: \u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u0435\u043c\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><code>quantity<\/code>: \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 (\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430) \u043d\u0430      \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e.<\/p>\n<\/li>\n<li>\n<p><code>price<\/code>: \u0426\u0435\u043d\u0430 \u0442\u043e\u0432\u0430\u0440\u0430 \u0437\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0432 \u0442\u0443\u0440\u0435\u0446\u043a\u0438\u0445 \u043b\u0438\u0440\u0430\u0445 (TL).<\/p>\n<\/li>\n<li>\n<p><code>payment_method<\/code>: \u0421\u043f\u043e\u0441\u043e\u0431\u0430 \u043e\u043f\u043b\u0430\u0442\u044b (\u043d\u0430\u043b\u0438\u0447\u043d\u044b\u043c\u0438, \u043a\u0440\u0435\u0434\u0438\u0442\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0439 \u0438\u043b\u0438      \u0434\u0435\u0431\u0435\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0439), \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0434\u043b\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p><code>invoice_date<\/code>: \u0414\u0430\u0442\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0430. \u0414\u0435\u043d\u044c, \u043a\u043e\u0433\u0434\u0430 \u0431\u044b\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430      \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p><code>shopping_mall<\/code>: \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u044b\u043b\u0430      \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u043e\u043f\u0443\u0441\u043a\u043e\u0432 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u0442, 6 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0445 (<code>invoice_no<\/code>,\u00a0<code>customer_id<\/code>,\u00a0<code>gender<\/code>,\u00a0<code>category<\/code>,\u00a0<code>payment_method<\/code>,\u00a0<code>invoice_date<\/code>,\u00a0<code>shopping_mall<\/code>) \u0438 3 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 (<code>age<\/code>, <code>quantity<\/code>,\u00a0<code>price<\/code>).<\/p>\n<h4>\u041f\u0440\u0435\u0434\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/h4>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/472\/bae\/f21\/472baef2150dbc4a84f27e225bc7a0de.png\" width=\"1004\" height=\"240\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/472\/bae\/f21\/472baef2150dbc4a84f27e225bc7a0de.png\"\/><\/figure>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439, \u0437\u043d\u0430\u0447\u0438\u0442, \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432, \u0438\u0437 \u0447\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u0423\u0434\u0430\u043b\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/2e7\/137\/67b\/2e713767b10be59cab9b58346a878298.png\" width=\"1004\" height=\"249\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/2e7\/137\/67b\/2e713767b10be59cab9b58346a878298.png\"\/><\/figure>\n<p>\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u00a0<code>invoice_data<\/code>\u00a0 \u0443\u043a\u0430\u0437\u0430\u043d \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e 3 \u0441\u0442\u043e\u043b\u0431\u0446\u0430 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0433\u043e\u0434\u0430, \u043c\u0435\u0441\u044f\u0446\u0430 \u0438 \u0434\u043d\u044f:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/3ed\/6cc\/752\/3ed6cc75274aab1d1d132528575db64e.png\" width=\"1004\" height=\"560\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3ed\/6cc\/752\/3ed6cc75274aab1d1d132528575db64e.png\"\/><\/figure>\n<p>\u0412\u043e\u0437\u0440\u0430\u0441\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 18 \u0434\u043e 69 \u043b\u0435\u0442, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0432\u0430\u0440\u044c\u0438\u0440\u0443\u0435\u0442 \u043e\u0442 1 \u0434\u043e 5, \u0441\u0430\u043c\u0430\u044f \u0434\u0435\u0448\u0435\u0432\u0430\u044f \u0438 \u0434\u043e\u0440\u043e\u0433\u0430\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 5,23 \u0438 5250 TL \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.\u00a0<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/7e4\/18c\/c2b\/7e418cc2b7503e7b0d1b460e069eca12.png\" width=\"709\" height=\"429\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7e4\/18c\/c2b\/7e418cc2b7503e7b0d1b460e069eca12.png\"\/><\/figure>\n<p>\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c\u00a0<code>age<\/code>\u00a0\u0432 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u0432\u044b\u0432\u0435\u0434\u0435\u043c \u043e\u0431\u0449\u0443\u044e \u0441\u0443\u043c\u043c\u0443 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432(<code>price<\/code>*<code>quantity<\/code>):<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e00\/4df\/b46\/e004dfb4678508503f5596c1e80090fc.png\" width=\"1004\" height=\"334\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e00\/4df\/b46\/e004dfb4678508503f5596c1e80090fc.png\"\/><\/figure>\n<h4>\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. <\/p>\n<p>\u0414\u0443\u043c\u0430\u044e, \u043d\u0438 \u0434\u043b\u044f \u043a\u043e\u0433\u043e \u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442 \u0438 \u0432\u0441\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b \u0441 \u0442\u0435\u043c \u0444\u0430\u043a\u0442\u043e\u043c, \u0447\u0442\u043e \u0436\u0435\u043d\u0449\u0438\u043d\u044b \u0442\u0440\u0430\u0442\u044f\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \ud83d\ude42 \u041f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u0440\u0430\u0442 \u043e\u0442 \u043f\u043e\u043b\u0430 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b71\/227\/c6b\/b71227c6b1023e22ff8283b802d267ab.png\" width=\"683\" height=\"507\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b71\/227\/c6b\/b71227c6b1023e22ff8283b802d267ab.png\"\/><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">g_p = data.groupby('gender')[['price']].sum().reset_index() sns.barplot(x='gender',y='price',data= g_p) plt.ylabel('\u041e\u0431\u0449\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432') plt.xlabel('\u041f\u043e\u043b') plt.title('\u0421\u0443\u043c\u043c\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043c\u0443\u0436\u0447\u0438\u043d \u0438 \u0436\u0435\u043d\u0449\u0438\u043d \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0438') plt.ticklabel_format(style='plain',axis='y') plt.show() <\/code><\/pre>\n<p>\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 \u043f\u043e\u043a\u0443\u043f\u043a\u0438, \u043f\u0440\u0438\u0447\u0435\u043c \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u00abTechnology\u00bb, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u00abShoes\u00bb \u0438 \u00abClothing\u00bb.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/1dd\/f6b\/bc4\/1ddf6bbc43ceb3aa6a231c2b91d6abba.png\" width=\"813\" height=\"427\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1dd\/f6b\/bc4\/1ddf6bbc43ceb3aa6a231c2b91d6abba.png\"\/><\/figure>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9af\/0c8\/f88\/9af0c8f8851d82c9dd294e1eb0f1d149.png\" width=\"490\" height=\"212\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/9af\/0c8\/f88\/9af0c8f8851d82c9dd294e1eb0f1d149.png\"\/><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">cat_p =data.groupby('category')[['price']].sum().reset_index() plt.figure(figsize=(10,5)) sns.barplot(x='category',y='price',data=cat_p) plt.title('\u0422\u0440\u0430\u0442\u044b \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c') plt.ylabel('\u041e\u0431\u0449\u0430\u044f \u0441\u0443\u043c\u043c\u0430') plt.xlabel('\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f') plt.ticklabel_format(style='plain',axis='y') plt.show()<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/d57\/a11\/acf\/d57a11acf02a05df220c0534aa0a8acb.png\" width=\"805\" height=\"555\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d57\/a11\/acf\/d57a11acf02a05df220c0534aa0a8acb.png\"\/><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">sns.boxplot(x='total', y='category', data=data) plt.title('Box Plot \u043f\u0440\u043e\u0434\u0430\u0436 \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u0435\u043c\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430') plt.ylabel('\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430') plt.xlabel('\u041e\u0431\u0449\u0430\u044f \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c') plt.show()<\/code><\/pre>\n<p>\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u00abgender\u00bb, \u00abpayment method\u00bb \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u044d\u0442\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/5fa\/bed\/40e\/5fabed40eb6c41cdbfd5371e3189a183.png\" width=\"600\" height=\"446\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5fa\/bed\/40e\/5fabed40eb6c41cdbfd5371e3189a183.png\"\/><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">pay_p =data.groupby('payment_method')[['price']].sum().reset_index() sns.barplot(x='payment_method',y='price',data=pay_p) plt.title('\u0421\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043e\u043f\u043b\u0430\u0442\u044b') plt.ticklabel_format(style='plain',axis='y') plt.ylabel('\u041e\u0431\u0449\u0430\u044f \u0441\u0443\u043c\u043c\u0430') plt.xlabel('\u0421\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u043b\u0430\u0442\u044b') plt.show()<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/169\/e9a\/8e9\/169e9a8e9c5f1a4ffeee56603d69433f.png\" width=\"814\" height=\"557\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/169\/e9a\/8e9\/169e9a8e9c5f1a4ffeee56603d69433f.png\"\/><\/figure>\n<p>\u00a0\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">fig, ax = plt.subplots(figsize=(12, 8)) sns.countplot(data=data, x='payment_method', hue='gender', palette='Set1', ax=ax) ax.set_title('\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0430\u0436 \u043f\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0443 \u043e\u043f\u043b\u0430\u0442\u044b \u0438 \u043f\u043e\u043b\u0443') ax.set_xlabel('\u0421\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u043b\u0430\u0442\u044b') ax.set_ylabel('\u041f\u0440\u043e\u0434\u0430\u0436\u0438') plt.show()<\/code><\/pre>\n<p>\u00a0\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0438 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b 25 &#8212; 44 \u0433\u043e\u0434\u0430 \u0442\u0440\u0430\u0442\u044f\u0442 \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c0b\/745\/bec\/c0b745bec75338978cfbfc89640f04a0.png\" width=\"666\" height=\"514\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c0b\/745\/bec\/c0b745bec75338978cfbfc89640f04a0.png\"\/><\/figure>\n<p>\u00a0\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">sns.histplot(data=data, x='age_group') plt.title('\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0443 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u043e\u043a\u0443\u043f\u043e\u043a') plt.ylabel('\u041f\u043e\u043a\u0443\u043f\u043a\u0438') plt.xlabel('\u0412\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b') plt.show()<\/code><\/pre>\n<p>\u00a0\u041d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0445 \u0446\u0435\u043d\u0442\u0440\u0430\u0445 \u00abIstanbul\u00bb, \u00abKanyon\u00bb \u0438 \u00abMetrocity\u00bb.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/990\/af0\/cbf\/990af0cbf57841d1c50c42f4ba25e594.png\" width=\"888\" height=\"625\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/990\/af0\/cbf\/990af0cbf57841d1c50c42f4ba25e594.png\"\/><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">colors = ['red', 'orange', 'yellow', 'green','blue', 'purple','lightblue' ,'black', 'brown', 'lightgreen'] data_mall = data.groupby(\"shopping_mall\")[\"total\"].sum() data_mall.plot(kind=\"bar\",figsize=(14, 8),color=colors) plt.title('\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u0445\u043e\u0434\u043e\u0432') plt.ylabel('\u0414\u043e\u0445\u043e\u0434') plt.xlabel('\u0422\u043e\u0440\u0433\u043e\u0432\u044b\u0439 \u0446\u0435\u043d\u0442\u0440') plt.show()<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/354\/7f3\/fc7\/3547f3fc7b77bf4a5fdac7e78ba4e279.png\" width=\"1004\" height=\"372\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/354\/7f3\/fc7\/3547f3fc7b77bf4a5fdac7e78ba4e279.png\"\/><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code>data['invoice_date'] = pd.to_datetime(data['invoice_date']) data.set_index('invoice_date', inplace=True) mall_total = data.groupby(['shopping_mall', pd.Grouper(freq='M')])['total'].sum() mall_total = mall_total.reset_index() mall_total = mall_total.pivot(index='invoice_date', columns='shopping_mall', values='total') mall_total.plot(figsize=(15, 5),color=colors) plt.title('\u0415\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u044b\u0439 \u0434\u043e\u0445\u043e\u0434 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430') plt.ylabel('\u0414\u043e\u0445\u043e\u0434') plt.xlabel('\u041c\u0435\u0441\u044f\u0446') plt.show()<\/code><\/pre>\n<p>\u00a0\u041a\u0430\u043a \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0430\u0436 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a\u0430\u043c:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/c20\/7c3\/654\/c207c36546e2eee3967a9818587e268a.png\" width=\"974\" height=\"506\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c20\/7c3\/654\/c207c36546e2eee3967a9818587e268a.png\"\/><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">data_sorted_weekday = data.sort_values(['day'], ascending=True, axis=0, inplace=False) ax = data_sorted_weekday['dayofweek'].value_counts()\\ [data_sorted_weekday['dayofweek'].unique()]\\ .plot(kind='line',figsize=(20,10),alpha=1.0) ax.set_title('\u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u0432 \u043d\u0435\u0434\u0435\u043b\u0435') ax.set_ylabel('\u0427\u0438\u0441\u043b\u043e \u043e\u043f\u043b\u0430\u0442') ax.set_xlabel('\u0414\u0435\u043d\u044c')<\/code><\/pre>\n<h4>\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438<\/h4>\n<p>\u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0431\u044b\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0447\u0435\u0442\u044b\u0440\u0435 \u043c\u043e\u0434\u0435\u043b\u0438:<\/p>\n<ul>\n<li>\n<p>\u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0435\u0440\u0435\u0432\u044c\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0439;<\/p>\n<\/li>\n<li>\n<p><code>LGBMRegressor<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>CatBoostRegressor<\/code>.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/846\/497\/e9d\/846497e9d0bfff9d7a6d2b3fdeff2a22.png\" width=\"929\" height=\"200\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/846\/497\/e9d\/846497e9d0bfff9d7a6d2b3fdeff2a22.png\"\/><\/figure>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b:<\/p>\n<ul>\n<li>\n<p>\u041b\u0443\u0447\u0448\u0438\u0439 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043c\u043e\u0434\u0435\u043b\u044c <strong>CatBoostRegressor.<\/strong><\/p>\n<\/li>\n<li>\n<p>\u0421\u0430\u043c\u044b\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u0434\u043b\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u2013 <strong>\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u0443 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439 <strong>\u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0430<\/strong>, \u043e\u0434\u043d\u0430\u043a\u043e \u0437\u0434\u0435\u0441\u044c <strong>\u043f\u043e\u043b<\/strong>, \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 <strong>\u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u043b\u0430\u0442\u044b<\/strong>, \u043e\u0441\u043e\u0431\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f<\/strong> \u0442\u043e\u0432\u0430\u0440\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0441\u0443\u043c\u043c\u0443 \u043f\u043e\u043a\u0443\u043f\u043a\u0438, \u0441\u0430\u043c\u044b\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0432 \u00abTechnology\u00bb, \u00abShoes\u00bb \u0438 \u00abClothing\u00bb.<\/p>\n<\/li>\n<li>\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043e \u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b <strong>\u043e\u0442 25 \u0434\u043e 44<\/strong> \u043b\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0430\u043c\u044b\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 <strong>\u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0435 \u0446\u0435\u043d\u0442\u0440\u044b<\/strong> \u0432 \u043f\u043b\u0430\u043d\u0435 \u043f\u043e\u043a\u0443\u043f\u043e\u043a: \u00abIstanbul\u00bb, \u00abKanyon\u00bb \u0438 \u00abMetrocity\u00bb.<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u043d\u0430\u0447\u0438\u0442, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c <strong>CatBoostRegressor<\/strong> \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0445 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u043e\u0431\u0449\u0435\u0433\u043e \u0434\u043e\u0445\u043e\u0434\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 (\u043f\u043e\u043b, \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430, \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u043f\u043e\u043a\u0443\u043f\u0430\u0435\u043c\u044b\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432).<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \ud83d\ude42<\/p>\n<p><em>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043a\u0443\u0440\u0441\u0435, \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0430 \u043f\u0440\u043e\u0435\u043a\u0442, <\/em><a href=\"https:\/\/otus.pw\/xahh\/\"><em>\u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0442\u0443\u0442<\/em><\/a><em>.<\/em><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/768876\/\"> https:\/\/habr.com\/ru\/articles\/768876\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><\/figure>\n<div class=\"persona\">\n<h5 class=\"persona__heading\">\u0410\u0432\u0442\u043e\u0440 \u0441\u0442\u0430\u0442\u044c\u0438: \u0416\u0430\u043d\u043d\u0430 \u0411\u043e\u0442\u0430\u0448\u0435\u0432\u0430<\/h5>\n<p>\u0412\u044b\u043f\u0443\u0441\u043a\u043d\u0438\u0446\u0430 \u043a\u0443\u0440\u0441\u0430 Machine Learning. Basic<\/p>\n<\/div>\n<p>\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442! \u0412\u043e\u0442 \u0438 \u044f \u0434\u043e\u0431\u0440\u0430\u043b\u0430\u0441\u044c \u0434\u043e \u0425\u0430\u0431\u0440\u0430 :).<\/p>\n<p>\u0425\u043e\u0447\u0443 \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0432\u043e\u0435\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0430 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u0443\u0440\u0441\u0430 OTUS <a href=\"https:\/\/otus.pw\/xahh\/\">&#171;Machine Learning.Basic&#187;<\/a>. <\/p>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430\u0441 \u0436\u0434\u0435\u0442 \u043f\u0443\u0442\u0435\u0448\u0435\u0441\u0442\u0432\u0438\u0435 \u0432 \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043c\u0438\u0440 \u0448\u043e\u043f\u0438\u043d\u0433\u0430 \u0432 \u0421\u0442\u0430\u043c\u0431\u0443\u043b\u0435! <\/p>\n<p>\u0426\u0435\u043b\u044c\u044e \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0442\u0435\u043d\u0434\u0435\u043d\u0446\u0438\u044f\u0445 \u0438 \u043c\u043e\u0434\u0435\u043b\u044f\u0445 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u0432 \u0421\u0442\u0430\u043c\u0431\u0443\u043b\u0435 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u042f\u0437\u044b\u043a\u043e\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u044b\u0441\u0442\u0443\u043f\u0438\u043b Python, \u0441\u0440\u0435\u0434\u043e\u0439 &#8212;\u00a0Jupyter Notebook (anaconda3).<\/p>\n<p>\u0414\u043b\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u043f\u043e\u043a\u0443\u043f\u043a\u0430\u0445 \u0432 10 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0445 \u0446\u0435\u043d\u0442\u0440\u0430\u0445 \u0432 \u043f\u0435\u0440\u0438\u043e\u0434 \u0441 2021 \u043f\u043e 2023 \u0433\u043e\u0434. \u0414\u0430\u0442\u0430\u0441\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u044b\u0445 \u0433\u0440\u0443\u043f\u043f \u0438 \u043f\u043e\u043b\u043e\u0432, \u0447\u0442\u043e \u0434\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u043f\u0440\u0438\u0432\u044b\u0447\u043a\u0430\u0445 \u0432 \u0421\u0442\u0430\u043c\u0431\u0443\u043b\u0435. \u041d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0441\u0435\u0431\u044f \u0432\u0430\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0442\u0430\u043a\u0443\u044e \u200b\u200b\u043a\u0430\u043a \u043d\u043e\u043c\u0435\u0440\u0430 \u0441\u0447\u0435\u0442\u043e\u0432, \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432, \u0432\u043e\u0437\u0440\u0430\u0441\u0442, \u043f\u043e\u043b, \u0441\u043f\u043e\u0441\u043e\u0431\u044b \u043e\u043f\u043b\u0430\u0442\u044b, \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e, \u0446\u0435\u043d\u0430, \u0434\u0430\u0442\u044b \u0437\u0430\u043a\u0430\u0437\u0430 \u0438 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0445 \u0446\u0435\u043d\u0442\u0440\u043e\u0432.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432:<\/p>\n<figure class=\"full-width\"><\/figure>\n<ul>\n<li>\n<p><code>invoice_no<\/code>: \u041d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><code>customer_id<\/code>: \u041d\u043e\u043c\u0435\u0440 \u043a\u043b\u0438\u0435\u043d\u0442\u0430.<\/p>\n<\/li>\n<li>\n<p><code>gender<\/code>: \u041f\u043e\u043b.<\/p>\n<\/li>\n<li>\n<p><code>age<\/code>: \u0412\u043e\u0437\u0440\u0430\u0441\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<li>\n<p><code>category<\/code>: \u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438 \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u0435\u043c\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430<\/p>\n<\/li>\n<li>\n<p><code>quantity<\/code>: \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 (\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430) \u043d\u0430      \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e.<\/p>\n<\/li>\n<li>\n<p><code>price<\/code>: \u0426\u0435\u043d\u0430 \u0442\u043e\u0432\u0430\u0440\u0430 \u0437\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443 \u0432 \u0442\u0443\u0440\u0435\u0446\u043a\u0438\u0445 \u043b\u0438\u0440\u0430\u0445 (TL).<\/p>\n<\/li>\n<li>\n<p><code>payment_method<\/code>: \u0421\u043f\u043e\u0441\u043e\u0431\u0430 \u043e\u043f\u043b\u0430\u0442\u044b (\u043d\u0430\u043b\u0438\u0447\u043d\u044b\u043c\u0438, \u043a\u0440\u0435\u0434\u0438\u0442\u043d\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0439 \u0438\u043b\u0438      \u0434\u0435\u0431\u0435\u0442\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u043e\u0439), \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0433\u043e \u0434\u043b\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p><code>invoice_date<\/code>: \u0414\u0430\u0442\u0430 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0447\u0435\u0442\u0430. \u0414\u0435\u043d\u044c, \u043a\u043e\u0433\u0434\u0430 \u0431\u044b\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430      \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p><code>shopping_mall<\/code>: \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0431\u044b\u043b\u0430      \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0430 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u043e\u043f\u0443\u0441\u043a\u043e\u0432 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435\u0442, 6 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0445 (<code>invoice_no<\/code>,\u00a0<code>customer_id<\/code>,\u00a0<code>gender<\/code>,\u00a0<code>category<\/code>,\u00a0<code>payment_method<\/code>,\u00a0<code>invoice_date<\/code>,\u00a0<code>shopping_mall<\/code>) \u0438 3 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u0437\u043d\u0430\u043a\u043e\u0432 (<code>age<\/code>, <code>quantity<\/code>,\u00a0<code>price<\/code>).<\/p>\n<h4>\u041f\u0440\u0435\u0434\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430<\/h4>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u043d\u043e\u043c\u0435\u0440 \u0441\u0447\u0435\u0442\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439, \u0437\u043d\u0430\u0447\u0438\u0442, \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432, \u0438\u0437 \u0447\u0435\u0433\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442, \u0447\u0442\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. \u0423\u0434\u0430\u043b\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0442\u043e\u043b\u0431\u0446\u044b:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u00a0<code>invoice_data<\/code>\u00a0 \u0443\u043a\u0430\u0437\u0430\u043d \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e 3 \u0441\u0442\u043e\u043b\u0431\u0446\u0430 \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0433\u043e\u0434\u0430, \u043c\u0435\u0441\u044f\u0446\u0430 \u0438 \u0434\u043d\u044f:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0412\u043e\u0437\u0440\u0430\u0441\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 18 \u0434\u043e 69 \u043b\u0435\u0442, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0432\u0430\u0440\u044c\u0438\u0440\u0443\u0435\u0442 \u043e\u0442 1 \u0434\u043e 5, \u0441\u0430\u043c\u0430\u044f \u0434\u0435\u0448\u0435\u0432\u0430\u044f \u0438 \u0434\u043e\u0440\u043e\u0433\u0430\u044f \u043f\u043e\u043a\u0443\u043f\u043a\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 5,23 \u0438 5250 TL \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.\u00a0<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c\u00a0<code>age<\/code>\u00a0\u0432 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u0432\u044b\u0432\u0435\u0434\u0435\u043c \u043e\u0431\u0449\u0443\u044e \u0441\u0443\u043c\u043c\u0443 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432(<code>price<\/code>*<code>quantity<\/code>):<\/p>\n<figure class=\"full-width\"><\/figure>\n<h4>\u0412\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445<\/h4>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. <\/p>\n<p>\u0414\u0443\u043c\u0430\u044e, \u043d\u0438 \u0434\u043b\u044f \u043a\u043e\u0433\u043e \u043d\u0435 \u0441\u0435\u043a\u0440\u0435\u0442 \u0438 \u0432\u0441\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b \u0441 \u0442\u0435\u043c \u0444\u0430\u043a\u0442\u043e\u043c, \u0447\u0442\u043e \u0436\u0435\u043d\u0449\u0438\u043d\u044b \u0442\u0440\u0430\u0442\u044f\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \ud83d\ude42 \u041f\u043e\u0441\u0442\u0440\u043e\u0438\u043c \u0433\u0438\u0441\u0442\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0442\u0440\u0430\u0442 \u043e\u0442 \u043f\u043e\u043b\u0430 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">g_p = data.groupby('gender')[['price']].sum().reset_index() sns.barplot(x='gender',y='price',data= g_p) plt.ylabel('\u041e\u0431\u0449\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432') plt.xlabel('\u041f\u043e\u043b') plt.title('\u0421\u0443\u043c\u043c\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043c\u0443\u0436\u0447\u0438\u043d \u0438 \u0436\u0435\u043d\u0449\u0438\u043d \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0438') plt.ticklabel_format(style='plain',axis='y') plt.show() <\/code><\/pre>\n<p>\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430 \u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0441\u0443\u043c\u043c\u0443 \u043f\u043e\u043a\u0443\u043f\u043a\u0438, \u043f\u0440\u0438\u0447\u0435\u043c \u043d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u00abTechnology\u00bb, \u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0442 \u00abShoes\u00bb \u0438 \u00abClothing\u00bb.<\/p>\n<figure class=\"full-width\"><\/figure>\n<figure class=\"\"><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">cat_p =data.groupby('category')[['price']].sum().reset_index() plt.figure(figsize=(10,5)) sns.barplot(x='category',y='price',data=cat_p) plt.title('\u0422\u0440\u0430\u0442\u044b \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c') plt.ylabel('\u041e\u0431\u0449\u0430\u044f \u0441\u0443\u043c\u043c\u0430') plt.xlabel('\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f') plt.ticklabel_format(style='plain',axis='y') plt.show()<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">sns.boxplot(x='total', y='category', data=data) plt.title('Box Plot \u043f\u0440\u043e\u0434\u0430\u0436 \u043f\u043e \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\u043c \u043f\u0440\u0438\u043e\u0431\u0440\u0435\u0442\u0430\u0435\u043c\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430') plt.ylabel('\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430') plt.xlabel('\u041e\u0431\u0449\u0430\u044f \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c') plt.show()<\/code><\/pre>\n<p>\u041f\u0440\u0438\u0437\u043d\u0430\u043a\u0438 \u00abgender\u00bb, \u00abpayment method\u00bb \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u044d\u0442\u043e\u043c \u043d\u0430\u0431\u043e\u0440\u0435 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">pay_p =data.groupby('payment_method')[['price']].sum().reset_index() sns.barplot(x='payment_method',y='price',data=pay_p) plt.title('\u0421\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u0435\u0439 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u043e\u043f\u043b\u0430\u0442\u044b') plt.ticklabel_format(style='plain',axis='y') plt.ylabel('\u041e\u0431\u0449\u0430\u044f \u0441\u0443\u043c\u043c\u0430') plt.xlabel('\u0421\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u043b\u0430\u0442\u044b') plt.show()<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u00a0\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">fig, ax = plt.subplots(figsize=(12, 8)) sns.countplot(data=data, x='payment_method', hue='gender', palette='Set1', ax=ax) ax.set_title('\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0430\u0436 \u043f\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0443 \u043e\u043f\u043b\u0430\u0442\u044b \u0438 \u043f\u043e\u043b\u0443') ax.set_xlabel('\u0421\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u043b\u0430\u0442\u044b') ax.set_ylabel('\u041f\u0440\u043e\u0434\u0430\u0436\u0438') plt.show()<\/code><\/pre>\n<p>\u00a0\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0438 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b 25 &#8212; 44 \u0433\u043e\u0434\u0430 \u0442\u0440\u0430\u0442\u044f\u0442 \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u00a0\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">sns.histplot(data=data, x='age_group') plt.title('\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u043e \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u0443 \u0438 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u043e\u043a\u0443\u043f\u043e\u043a') plt.ylabel('\u041f\u043e\u043a\u0443\u043f\u043a\u0438') plt.xlabel('\u0412\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u044b\u0435 \u0433\u0440\u0443\u043f\u043f\u044b') plt.show()<\/code><\/pre>\n<p>\u00a0\u041d\u0430\u0438\u0431\u043e\u043b\u044c\u0448\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0445 \u0446\u0435\u043d\u0442\u0440\u0430\u0445 \u00abIstanbul\u00bb, \u00abKanyon\u00bb \u0438 \u00abMetrocity\u00bb.<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">colors = ['red', 'orange', 'yellow', 'green','blue', 'purple','lightblue' ,'black', 'brown', 'lightgreen'] data_mall = data.groupby(\"shopping_mall\")[\"total\"].sum() data_mall.plot(kind=\"bar\",figsize=(14, 8),color=colors) plt.title('\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u043e\u0445\u043e\u0434\u043e\u0432') plt.ylabel('\u0414\u043e\u0445\u043e\u0434') plt.xlabel('\u0422\u043e\u0440\u0433\u043e\u0432\u044b\u0439 \u0446\u0435\u043d\u0442\u0440') plt.show()<\/code><\/pre>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code>data['invoice_date'] = pd.to_datetime(data['invoice_date']) data.set_index('invoice_date', inplace=True) mall_total = data.groupby(['shopping_mall', pd.Grouper(freq='M')])['total'].sum() mall_total = mall_total.reset_index() mall_total = mall_total.pivot(index='invoice_date', columns='shopping_mall', values='total') mall_total.plot(figsize=(15, 5),color=colors) plt.title('\u0415\u0436\u0435\u043c\u0435\u0441\u044f\u0447\u043d\u044b\u0439 \u0434\u043e\u0445\u043e\u0434 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0433\u043e \u0446\u0435\u043d\u0442\u0440\u0430') plt.ylabel('\u0414\u043e\u0445\u043e\u0434') plt.xlabel('\u041c\u0435\u0441\u044f\u0446') plt.show()<\/code><\/pre>\n<p>\u00a0\u041a\u0430\u043a \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0430\u0436 \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a\u0430\u043c:<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u041a\u043e\u0434:<\/p>\n<pre><code class=\"python\">data_sorted_weekday = data.sort_values(['day'], ascending=True, axis=0, inplace=False) ax = data_sorted_weekday['dayofweek'].value_counts()\\ [data_sorted_weekday['dayofweek'].unique()]\\ .plot(kind='line',figsize=(20,10),alpha=1.0) ax.set_title('\u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u0432 \u043d\u0435\u0434\u0435\u043b\u0435') ax.set_ylabel('\u0427\u0438\u0441\u043b\u043e \u043e\u043f\u043b\u0430\u0442') ax.set_xlabel('\u0414\u0435\u043d\u044c')<\/code><\/pre>\n<h4>\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438<\/h4>\n<p>\u0414\u043b\u044f \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0431\u044b\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0447\u0435\u0442\u044b\u0440\u0435 \u043c\u043e\u0434\u0435\u043b\u0438:<\/p>\n<ul>\n<li>\n<p>\u043b\u0438\u043d\u0435\u0439\u043d\u0430\u044f \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044f;<\/p>\n<\/li>\n<li>\n<p>\u0434\u0435\u0440\u0435\u0432\u044c\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u0439;<\/p>\n<\/li>\n<li>\n<p><code>LGBMRegressor<\/code>;<\/p>\n<\/li>\n<li>\n<p><code>CatBoostRegressor<\/code>.<\/p>\n<\/li>\n<\/ul>\n<figure class=\"full-width\"><\/figure>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u044b\u0432\u043e\u0434\u044b:<\/p>\n<ul>\n<li>\n<p>\u041b\u0443\u0447\u0448\u0438\u0439 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043c\u043e\u0434\u0435\u043b\u044c <strong>CatBoostRegressor.<\/strong><\/p>\n<\/li>\n<li>\n<p>\u0421\u0430\u043c\u044b\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0434\u0435\u043d\u044c \u0434\u043b\u044f \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u2013 <strong>\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a<\/strong>.<\/p>\n<\/li>\n<li>\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u043e\u0432 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f \u0443 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u0435\u0439 <strong>\u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u0430<\/strong>, \u043e\u0434\u043d\u0430\u043a\u043e \u0437\u0434\u0435\u0441\u044c <strong>\u043f\u043e\u043b<\/strong>, \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u0438 <strong>\u0441\u043f\u043e\u0441\u043e\u0431 \u043e\u043f\u043b\u0430\u0442\u044b<\/strong>, \u043e\u0441\u043e\u0431\u043e \u043d\u0435 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f<\/strong> \u0442\u043e\u0432\u0430\u0440\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0441\u0443\u043c\u043c\u0443 \u043f\u043e\u043a\u0443\u043f\u043a\u0438, \u0441\u0430\u043c\u044b\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0432 \u00abTechnology\u00bb, \u00abShoes\u00bb \u0438 \u00abClothing\u00bb.<\/p>\n<\/li>\n<li>\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u043a\u0443\u043f\u043e\u043a \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043e \u0443 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043b\u0435\u0439 \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b <strong>\u043e\u0442 25 \u0434\u043e 44<\/strong> \u043b\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p>\u0421\u0430\u043c\u044b\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 <strong>\u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0435 \u0446\u0435\u043d\u0442\u0440\u044b<\/strong> \u0432 \u043f\u043b\u0430\u043d\u0435 \u043f\u043e\u043a\u0443\u043f\u043e\u043a: \u00abIstanbul\u00bb, \u00abKanyon\u00bb \u0438 \u00abMetrocity\u00bb.<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u043d\u0430\u0447\u0438\u0442, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c <strong>CatBoostRegressor<\/strong> \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0438\u0445 \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u043e\u0431\u0449\u0435\u0433\u043e \u0434\u043e\u0445\u043e\u0434\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0445\u043e\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0446\u0435\u043b\u0435\u0432\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 (\u043f\u043e\u043b, \u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430, \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f \u043f\u043e\u043a\u0443\u043f\u0430\u0435\u043c\u044b\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432).<\/p>\n<p>\u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \ud83d\ude42<\/p>\n<p><em>\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e \u043a\u0443\u0440\u0441\u0435, \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043b\u0430 \u043f\u0440\u043e\u0435\u043a\u0442, <\/em><a href=\"https:\/\/otus.pw\/xahh\/\"><em>\u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0442\u0443\u0442<\/em><\/a><em>.<\/em><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \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\/articles\/768876\/\"> https:\/\/habr.com\/ru\/articles\/768876\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-358065","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/358065","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=358065"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/358065\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=358065"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=358065"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=358065"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}