{"id":29166,"date":"2023-07-04T13:25:41","date_gmt":"2023-07-04T09:55:41","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/running-bar-chat-5g2\/"},"modified":"2023-07-04T13:25:41","modified_gmt":"2023-07-04T09:55:41","slug":"running-bar-chat-5g2","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/running-bar-chat-5g2\/","title":{"rendered":"\u0627\u062c\u0631\u0627\u06cc \u0686\u062a \u0646\u0648\u0627\u0631\u06cc"},"content":{"rendered":"<p><strong>\u0645\u0642\u062f\u0645\u0647<\/strong>:<br \/>\n\u062a\u062c\u0633\u0645 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0631\u0627\u0647\u06cc \u0642\u062f\u0631\u062a\u0645\u0646\u062f \u0628\u0631\u0627\u06cc \u0627\u0646\u062a\u0642\u0627\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0628\u0647 \u0634\u06cc\u0648\u0647 \u0627\u06cc \u0633\u0627\u062f\u0647 \u0648 \u062c\u0630\u0627\u0628 \u0628\u0627\u0634\u062f.  \u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u0646\u0648\u0628\u062a \u0628\u0647 \u062f\u0631\u06a9 \u0631\u0648\u0646\u062f\u0647\u0627 \u06cc\u0627 \u0627\u0644\u06af\u0648\u0647\u0627\u06cc \u0628\u0644\u0646\u062f\u0645\u062f\u062a \u0645\u06cc \u0634\u0648\u062f\u060c \u0645\u0627\u0646\u0646\u062f \u0627\u0641\u0632\u0627\u06cc\u0634 \u0642\u06cc\u0645\u062a \u0645\u0644\u06a9 \u062f\u0631 \u06cc\u06a9 \u0628\u0627\u0632\u0647 \u0632\u0645\u0627\u0646\u06cc 25 \u0633\u0627\u0644\u0647\u060c \u0646\u0645\u0648\u062f\u0627\u0631\u0647\u0627 \u06cc\u0627 \u0646\u0645\u0648\u062f\u0627\u0631\u0647\u0627\u06cc \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u0633\u0646\u062a\u06cc \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0647 \u0637\u0648\u0631 \u0645\u0648\u062b\u0631 \u0645\u0627\u0647\u06cc\u062a \u067e\u0648\u06cc\u0627\u06cc\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0646\u062f\u0647\u0646\u062f.  \u0628\u0627 \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u0646\u0645\u0627\u06cc\u0634 \u0628\u0635\u0631\u06cc \u06a9\u0647 \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0642\u06cc\u0645\u062a \u0645\u0644\u06a9 \u0631\u0627 \u062f\u0631 \u0637\u0648\u0644 \u0632\u0645\u0627\u0646\u060c \u0645\u0627\u0647 \u0628\u0647 \u0645\u0627\u0647\u060c \u0628\u0631\u0627\u06cc \u06a9\u0644 \u062f\u0648\u0631\u0647 25 \u0633\u0627\u0644\u0647 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0646\u0648\u0633\u0627\u0646\u0627\u062a \u0642\u06cc\u0645\u062a \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u062c\u0631\u06cc\u0627\u0646 \u0645\u062f\u0627\u0648\u0645 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u0647 \u062a\u0635\u0648\u06cc\u0631 \u0628\u06a9\u0634\u06cc\u0645 \u0648 \u0628\u0647 \u0628\u06cc\u0646\u0646\u062f\u06af\u0627\u0646 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc \u062f\u0647\u062f \u0631\u0648\u0646\u062f \u06a9\u0644\u06cc \u0631\u0627 \u062f\u0631\u06a9 \u06a9\u0646\u0646\u062f \u0648 \u0645\u0634\u0627\u0647\u062f\u0647 \u06a9\u0646\u0646\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0642\u06cc\u0645\u062a \u0647\u0627 \u062f\u0631 \u0637\u0648\u0644 \u0633\u0627\u0644 \u0647\u0627 \u0627\u0641\u0632\u0627\u06cc\u0634 \u0648 \u06a9\u0627\u0647\u0634 \u0645\u06cc \u06cc\u0627\u0628\u062f.<\/p>\n<p><strong>\u0628\u0633\u062a\u0647 \u0647\u0627<\/strong>:<br \/>\n<em>bar_chart_race<\/em>\u060c \u06cc\u06a9 \u0628\u0633\u062a\u0647 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u0645\u0633\u0627\u0628\u0642\u0647 \u0646\u0645\u0648\u062f\u0627\u0631 \u0645\u06cc\u0644\u0647 \u0627\u06cc\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>pip install bar_chart_race\nimport bar_chart_race as bcr\n<\/code><\/pre>\n<\/div>\n<p><strong>\u0645\u0646\u0628\u0639 \u0627\u0637\u0644\u0627\u0639\u0627\u062a<\/strong>:<br \/>\n\u0634\u0627\u062e\u0635 \u0642\u06cc\u0645\u062a \u062e\u0627\u0646\u0647 \u0628\u0631\u06cc\u062a\u0627\u0646\u06cc\u0627 (UK HPI) \u062a\u063a\u06cc\u06cc\u0631\u0627\u062a \u0627\u0631\u0632\u0634 \u0627\u0645\u0644\u0627\u06a9 \u0645\u0633\u06a9\u0648\u0646\u06cc \u0631\u0627 \u062f\u0631 \u0633\u0637\u062d \u0645\u0646\u0637\u0642\u0647 \u0646\u0634\u0627\u0646 \u0645\u06cc \u062f\u0647\u062f.<\/p>\n<p><\/p>\n<p><strong><u>\u067e\u06cc\u0634 \u0641\u0631\u0622\u06cc\u0646\u062f \u062f\u0627\u062f\u0647<\/u><\/strong>:<br \/>\n\u067e\u06cc\u0634 \u067e\u0631\u062f\u0627\u0632\u0634 \u0634\u0627\u0645\u0644 \u062a\u0628\u062f\u06cc\u0644 \u0633\u062a\u0648\u0646 \u00ab\u062a\u0627\u0631\u06cc\u062e\u00bb \u0628\u0647 \u0642\u0627\u0644\u0628 \u062a\u0627\u0631\u06cc\u062e \u0648 \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u062c\u062f\u0648\u0644 \u0645\u062d\u0648\u0631\u06cc (pvdata) \u0628\u0627 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0645\u06cc\u0627\u0646\u06af\u06cc\u0646 \u0633\u062a\u0648\u0646 \u00ab\u0645\u062a\u0648\u0633\u0637_\u0642\u06cc\u0645\u062a \u062c\u062f\u0627\u0634\u062f\u0647\u00bb\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u00ab\u062a\u0627\u0631\u06cc\u062e\u00bb \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0634\u0627\u062e\u0635 \u0648 \u00ab\u0646\u0627\u0645_\u0645\u0646\u0637\u0642\u0647\u00bb \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0633\u062a\u0648\u0646\u200c\u0647\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f.\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>df['Date'] = pd.to_datetime(df['Date'])\npvdata = df.pivot_table(\"Detached_Average_Price\", index = \"Date\",columns = [\"Region_Name\"], aggfunc = np.average)\n<\/code><\/pre>\n<\/div>\n<p>\u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u06cc \u0645\u0631\u062a\u0628 \u06a9\u0631\u062f\u0646 \u0634\u0627\u062e\u0635\u060c \u067e\u0631 \u06a9\u0631\u062f\u0646 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0627\u0632 \u062f\u0633\u062a \u0631\u0641\u062a\u0647\u060c \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u06cc\u06a9 \u0633\u062a\u0648\u0646 &#8216;month_year&#8217;\u060c \u062a\u0646\u0638\u06cc\u0645 \u0622\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0634\u0627\u062e\u0635 \u062c\u062f\u06cc\u062f\u060c \u062a\u0646\u0638\u06cc\u0645 \u0645\u062c\u062f\u062f \u0634\u0627\u062e\u0635 \u0628\u0647 \u06cc\u06a9 \u0634\u0627\u062e\u0635 \u0639\u062f\u062f\u06cc\u060c \u0648 \u062f\u0631 \u0646\u0647\u0627\u06cc\u062a \u06af\u0631\u0648\u0647 \u0628\u0646\u062f\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0645\u0627\u0647 \u0648 \u0645\u062d\u0627\u0633\u0628\u0647 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0645\u06cc\u0627\u0646\u06af\u06cc\u0646 \u0627\u0633\u062a.\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>pvdata.sort_index(inplace=True, ascending=True)\npvdata = pvdata.fillna(0)\npvdata['month_year'] = pvdata.index.strftime('%Y-%m')\npvdata_month = pvdata.set_index(\"month_year\")\npvdata_month.reset_index()\npvdata_monthgr = pvdata_month.groupby('month_year').mean()\n<\/code><\/pre>\n<\/div>\n<p><strong><u>\u062a\u062c\u0633\u0645 \u062f\u0627\u062f\u0647 \u0647\u0627<\/u><\/strong>:\n<\/p>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>bcr.bar_chart_race(df = pvdata_monthgr, \nfilename = \"growthbyregion.gif\", \nfilter_column_colors = True, \ncmap = \"prism\", \ntitle = \"Average House Price By Months\")\n<\/code><\/pre>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i.giphy.com\/media\/v1.Y2lkPTc5MGI3NjExYzYzODhtMTNyczQ4aXA4OTQ1NjlwMTR5d3UyNGgxd3I5dmNkM21hZSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw\/w8NsymOZnitpkB6cVc\/giphy.gif\" alt=\"\u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u062a\u0635\u0648\u06cc\u0631\" width=\"480\" height=\"233\" title=\"\"><\/p>\n<p><strong>\u062e\u0644\u0627\u0635\u0647<\/strong>:<br \/>\n\u0627\u06cc\u0646 \u0627\u0646\u06cc\u0645\u06cc\u0634\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u062d\u0633 \u062d\u0631\u06a9\u062a \u0648 \u067e\u06cc\u0634\u0631\u0641\u062a \u0631\u0627 \u0645\u0646\u062a\u0642\u0644 \u06a9\u0646\u062f\u060c \u062f\u0631\u06a9 \u0634\u0647\u0648\u062f\u06cc \u0648 \u062c\u0630\u0627\u0628\u200c\u062a\u0631\u06cc \u0627\u0632 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0646\u0633\u0628\u062a \u0628\u0647 \u0646\u0645\u0648\u062f\u0627\u0631 \u06cc\u0627 \u0646\u0645\u0648\u062f\u0627\u0631 \u0627\u06cc\u0633\u062a\u0627 \u0627\u0631\u0627\u0626\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0628\u0647 \u0628\u06cc\u0646\u0646\u062f\u06af\u0627\u0646 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0631\u0627 \u062f\u0631\u06a9 \u06a9\u0646\u0646\u062f \u0648 \u0628\u06cc\u0646\u0634 \u0627\u0631\u0632\u0634\u0645\u0646\u062f\u06cc \u0627\u0632 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0628\u0647 \u062f\u0633\u062a \u0622\u0648\u0631\u0646\u062f.<\/p>\n<p><strong><u>\u0627\u0631\u062c\u0627\u0639<\/u><\/strong>:<\/p>\n<ol>\n<li>\n<p>\u0645\u0633\u0627\u0628\u0642\u0647 \u0646\u0645\u0648\u062f\u0627\u0631 \u0645\u06cc\u0644\u0647 \u0627\u06cc<\/p>\n<\/li>\n<li>\n<p>\u0634\u0627\u062e\u0635 \u0642\u06cc\u0645\u062a \u062e\u0627\u0646\u0647 \u062f\u0631 \u0627\u0646\u06af\u0644\u0633\u062a\u0627\u0646<\/p>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u0645\u0642\u062f\u0645\u0647: \u062a\u062c\u0633\u0645 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0631\u0627\u0647\u06cc \u0642\u062f\u0631\u062a\u0645\u0646\u062f \u0628\u0631\u0627\u06cc \u0627\u0646\u062a\u0642\u0627\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u067e\u06cc\u0686\u06cc\u062f\u0647 \u0628\u0647 \u0634\u06cc\u0648\u0647 \u0627\u06cc \u0633\u0627\u062f\u0647 \u0648 \u062c\u0630\u0627\u0628 \u0628\u0627\u0634\u062f. \u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 \u0646\u0648\u0628\u062a \u0628\u0647 \u062f\u0631\u06a9 \u0631\u0648\u0646\u062f\u0647\u0627 \u06cc\u0627 \u0627\u0644\u06af\u0648\u0647\u0627\u06cc \u0628\u0644\u0646\u062f\u0645\u062f\u062a \u0645\u06cc \u0634\u0648\u062f\u060c \u0645\u0627\u0646\u0646\u062f \u0627\u0641\u0632\u0627\u06cc\u0634 \u0642\u06cc\u0645\u062a \u0645\u0644\u06a9 \u062f\u0631 \u06cc\u06a9 \u0628\u0627\u0632\u0647 \u0632\u0645\u0627\u0646\u06cc 25 \u0633\u0627\u0644\u0647\u060c \u0646\u0645\u0648\u062f\u0627\u0631\u0647\u0627 \u06cc\u0627 \u0646\u0645\u0648\u062f\u0627\u0631\u0647\u0627\u06cc \u0627\u0633\u062a\u0627\u062a\u06cc\u06a9 \u0633\u0646\u062a\u06cc \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0647 \u0637\u0648\u0631 \u0645\u0648\u062b\u0631 \u0645\u0627\u0647\u06cc\u062a \u067e\u0648\u06cc\u0627\u06cc\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0631\u0627 &hellip;<\/p>\n","protected":false},"author":2,"featured_media":29167,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-29166","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/29166","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=29166"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/29166\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media\/29167"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=29166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=29166"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=29166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}