{"id":2381,"date":"2021-01-06T11:35:51","date_gmt":"2021-01-06T02:35:51","guid":{"rendered":"https:\/\/qol-kk.com\/wp2\/?p=2381"},"modified":"2021-01-06T11:35:51","modified_gmt":"2021-01-06T02:35:51","slug":"post-2381","status":"publish","type":"post","link":"https:\/\/qol-kk.com\/wp2\/blog\/2021\/01\/06\/post-2381\/","title":{"rendered":"Django\uff1aMySQL\u306b\u683c\u7d0d\u3055\u308c\u305f\u65e5\u8a08\u58f2\u4e0a\u3092Pandas\u3067\u6708\u96c6\u8a08\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<h3>Django\uff1aMySQL\u306b\u683c\u7d0d\u3055\u308c\u305f\u65e5\u8a08\u58f2\u4e0a\u3092Pandas\u3067\u6708\u96c6\u8a08\u3059\u308b\u65b9\u6cd5<\/h3>\n<p>\u6708\u9593\u306e\u58f2\u4e0a\u96c6\u8a08\u3001\u96c6\u5ba2\u5206\u6790etc\u3001\u6708\u3067\u307e\u3068\u3081\u3066\u8868\u793a\u3057\u305f\u3044\u3053\u3068\u306f\u6ca2\u5c71\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3067\u3001\u96c6\u8a08\u3057\u305f\u30c7\u30fc\u30bf\u3092\u30b0\u30e9\u30d5\u5316\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u6b20\u640d\u6708\u304c\u3042\u3063\u305f\u308a\u3059\u308b\u5834\u5408\u306b\u9762\u5012\u306b\u306a\u3063\u305f\u308a\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3089\u8fba\u306e\u51e6\u7406\u304cpandas\u4f7f\u3063\u305f\u3089\u697d\u3060\u3063\u305f\u306e\u3067\u5099\u5fd8\u9332\u3067\u3059\u3002<\/p>\n<h3>\u5927\u307e\u304b\u306a\u6d41\u308c<\/h3>\n<div class=\"paperBox\">\n<ol>\n<li>For\u30eb\u30fc\u30d7\u7528\u306e\u5e97\u8217\u30ea\u30b9\u30c8\u3092\u7528\u610f\u3059\u308b \u203bSQL\u304c\u3042\u308c\u3070\u305d\u306e\u62bd\u51fa\u3067OK<\/li>\n<li>SQL\uff1a\u65e5\u6b21\u58f2\u4e0a\u96c6\u8a08(\u4f8b\u306e\u5834\u5408Detail)\u306b\u30d5\u30a3\u30eb\u30bf\u30fc\u3092\u639b\u3051\u30c7\u30fc\u30bf\u62bd\u51fa \u203b\u96c6\u8a08\u671f\u9593\/\u5e97\u8217ID<\/li>\n<li>\u62bd\u51fa\u3057\u305f\u5024\u3092DataFrame\u306b\u5909\u63db<\/li>\n<li>\u65e5\u4ed8\u306bindex\u3092\u8cbc\u308b<\/li>\n<li>\u6708\u3054\u3068\u306b\u96c6\u8a08<\/li>\n<li>\u96c6\u8a08\u7d50\u679c\u3092\u53d7\u6e21\u7528\u306eDataFrame\u306b\u683c\u7d0d\u3002<\/li>\n<li>2\u5e97\u8217\u76ee\u4ee5\u964d\u306e\u5834\u5408\u3001\u524d\u56de\u306eDataFrame\u306b\u6a2a\u7d50\u5408<\/li>\n<\/ol>\n<\/div>\n<p>\u30dd\u30a4\u30f3\u30c8\u306f\u65e5\u4ed8\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3068\u3057\u305f\u6a2a\u7d50\u5408\u3092\u3057\u3066\u3044\u304f\u4e8b\u3067\u3059\u3002<br \/>\n\u5177\u4f53\u7684\u306b\u306f\u3053\u3093\u306a\u611f\u3058\u306eDataFrame\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div class=\"paperBox\">date\u3000\u3000\u3000shopA\u3000\u00a0 shopB<br \/>\n2020\/09\u3000\u30005800\u3000\u30004300<br \/>\n2020\/10\u3000\u00a0 15351\u3000\u30006786<br \/>\n2020\/11\u3000101870\u3000\u30005668<br \/>\n2020\/12\u3000\u00a0 17502\u3000\u30006784<\/div>\n<h3>\u5177\u4f53\u7684\u306a\u4f8b<\/h3>\n<p>\u4f8b\u3048\u3070\u3053\u3093\u306a\u30c7\u30fc\u30bf\u304c\u3042\u3063\u305f\u3068\u3057\u307e\u3059\u3002\u3010\u58f2\u4e0a\u30c7\u30fc\u30bf\u203bDetail\u3011<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>id<\/td>\n<td>date<\/td>\n<td>sales<\/td>\n<td>access<\/td>\n<td>contact<\/td>\n<td>shop_id<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>2020\/9\/1<\/td>\n<td>5000<\/td>\n<td>448<\/td>\n<td>4<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>2020\/9\/4<\/td>\n<td>600<\/td>\n<td>454<\/td>\n<td>3<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>2020\/9\/12<\/td>\n<td>4300<\/td>\n<td>1354<\/td>\n<td>5<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>2020\/9\/24<\/td>\n<td>200<\/td>\n<td>545<\/td>\n<td>6<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>2020\/10\/3<\/td>\n<td>6400<\/td>\n<td>215<\/td>\n<td>5<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>2020\/10\/9<\/td>\n<td>2200<\/td>\n<td>1365<\/td>\n<td>8<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td>2020\/10\/18<\/td>\n<td>8951<\/td>\n<td>15385<\/td>\n<td>6<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td>2020\/10\/27<\/td>\n<td>4586<\/td>\n<td>155<\/td>\n<td>2<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td>2020\/11\/7<\/td>\n<td>5668<\/td>\n<td>1536<\/td>\n<td>5<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td>2020\/11\/9<\/td>\n<td>5464<\/td>\n<td>456<\/td>\n<td>6<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td>2020\/11\/10<\/td>\n<td>8761<\/td>\n<td>786<\/td>\n<td>2<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td>2020\/11\/25<\/td>\n<td>87645<\/td>\n<td>243<\/td>\n<td>1<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<td>2020\/12\/4<\/td>\n<td>6785<\/td>\n<td>4156<\/td>\n<td>6<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>14<\/td>\n<td>2020\/12\/6<\/td>\n<td>6584<\/td>\n<td>165<\/td>\n<td>8<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>15<\/td>\n<td>2020\/12\/11<\/td>\n<td>1465<\/td>\n<td>878<\/td>\n<td>4<\/td>\n<td>1<\/td>\n<\/tr>\n<tr>\n<td>16<\/td>\n<td>2020\/12\/24<\/td>\n<td>9453<\/td>\n<td>486<\/td>\n<td>6<\/td>\n<td>1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3053\u306e\u6708\u9593\u58f2\u4e0a\u62bd\u51fa\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">import pandas as pd\r\n(\u4e2d\u7565)\r\n\r\n\"\"\"\u30c7\u30fc\u30bf\u62bd\u51fa\u65e5\u6642\u8abf\u6574\"\"\"\r\nyd = (datetime.date.today() - datetime.timedelta(days=1))# \u6628\u65e5\r\nfd = yd.replace(day=1)#\u6628\u65e5\u3068\u540c\u67081\u65e5\r\nbw24 = fd - relativedelta(years=2)#2\u5e74\u524d\u306e\u540c\u6708\r\n#\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5225\u5e97\u8217\u60c5\u5831\u53d6\u51fa\u3057\u203bshop_code\u3092\u53d6\u51fa\u3057\r\nshop_base = Shops.objects.values('id','mall_id','shop_code')\r\n\r\nshopdata = []\r\nn = 1\r\nfor sb in shop_base:\r\n    \"\"\"SQL\u304b\u3089\u30c7\u30fc\u30bf\u62bd\u51fa\u203bsales\u306e\u307f\u53d6\u5f97\"\"\"\r\n    l_box = Dailies.objects.values('date','sales')\\\r\n        .filter(date__range=[bw24, yd])\\\r\n        .filter(shop_id=sb['id'])\\\r\n        .order_by('date')\r\n    \"\"\"pandas\u306b\u5165\u308c\u3066\u96c6\u8a08\"\"\"\r\n    list_base = pd.DataFrame(l_box)\r\n    list_base[\"date\"] = pd.to_datetime(list_base[\"date\"])\r\n    mm = list_base.set_index([\"date\"])\r\n    ma = mm.resample(\"M\").sum()\r\n    \r\n    if n == 1:\r\n        \"\"\"\u6700\u521d\u306e\u30ec\u30b3\u30fc\u30c9\u306e\u6642\u306f\u7d20\u76f4\u306b\"\"\"\r\n        list_base_02 = ma.rename(columns={'date':'date','sales': sb['shop_code']})\r\n    else:\r\n        \"\"\"2\u30ec\u30b3\u30fc\u30c9\u4ee5\u964d\u306f\u524d\u56de\u307e\u3067\u306e\u30ea\u30b9\u30c8\u306b\u6a2a\u5074\u8ffd\u52a0\"\"\"\r\n        list_base_02 = pd.concat([list_base_02, ma.rename(columns={'date':'date','sales': sb['shop_code']})],axis=1)\r\n    n = n+1\r\n\r\n(\u5f8c\u7565)\r\n<\/pre>\n<h3>\u30c1\u30e7\u30c3\u30c8\u89e3\u8aac<\/h3>\n<p>\u898b\u76f4\u3057\u7528\u306b\u89e3\u8aac\u3092\u4ed8\u3051\u3066\u307f\u307e\u3059\u3002<\/p>\n<h4>5\u884c\u76ee\uff5e7\u884c\u76ee<\/h4>\n<p>\u62bd\u51fa\u3059\u308b\u65e5\u4ed8\u306e\u5236\u5fa1\u90e8\u5206\u3067\u3059\u3002<\/p>\n<p>\u6b32\u3057\u3044\u30c7\u30fc\u30bf\u306f\u300e\u6708\u9593\u96c6\u8a08\u300f\u306a\u306e\u3067\u3001\u5fc5\u8981\u306a\u51e6\u7406\u304c2\u3064\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<div class=\"borderBox\">\n<ul>\n<li>\u6700\u65b0\u30c7\u30fc\u30bf\u306f\u524d\u65e5\uff08\u203b\u5f53\u65e5\u306e\u30c7\u30fc\u30bf\u306f\u672a\u53ce\u96c6\/\u672a\u96c6\u8a08\u306a\u306e\u3067\uff09<\/li>\n<li>\u6700\u9060\u306e\u30c7\u30fc\u30bf\u306f2\u5e74\u524d\u306e1\u65e5\u304b\u3089\u306e\u96c6\u8a08\u306e\u5fc5\u8981\u304c\u3042\u308b\uff08\u203b12\u65e5\u30b9\u30bf\u30fc\u30c8\u306a\u3069\u306b\u306a\u3063\u3066\u306f\u3044\u3051\u306a\u3044\uff09<\/li>\n<\/ul>\n<\/div>\n<p>today()\u3067\u53d6\u5f97\u3057\u305f\u65e5\u306e2\u5e74\u524d\u3068\u3057\u3066\u3057\u307e\u3046\u3068\u3002\u958b\u59cb\u65e5\u304c1\u65e5\u306b\u306a\u308a\u307e\u305b\u3093\u3002<br \/>\n\u6b32\u3057\u3044\u306e\u306f\u6708\u9593\u96c6\u8a08\u306a\u306e\u3067\u30011\u65e5\u30b9\u30bf\u30fc\u30c8\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">fd = yd.replace(day=1)<\/pre>\n<p>\u3053\u306e6\u884c\u76ee\u306e\u6307\u793a\u3067datetime.date\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u65e5\u4ed8\u90e8\u5206\u30921\u306b\u5909\u66f4\u3057<\/p>\n<pre class=\"lang:python decode:true \">bw24 = fd - relativedelta(years=2)<\/pre>\n<p>\u305d\u3053\u304b\u30892\u5e74\u524d\u3092\u53d6\u5f97\u3059\u308b\u4e8b\u3067\u8abf\u6574\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>15\u884c\u76ee\uff5e18\u884c\u76ee<\/h4>\n<p>\u3053\u306e\u30d1\u30fc\u30c4\u306f\u5358\u7d14\u306aSQL\u304b\u3089\u306e\u62bd\u51fa\u3067\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u4f8b\u3067\u306f\u4f59\u8a08\u306a\u30c7\u30fc\u30bf\u3092\u7701\u304f\u305f\u3081\u306b\u300115\u884c\u76ee\u3067\u62bd\u51fa\u3059\u308b\u30ab\u30e9\u30e0\u3092\u6307\u5b9a\u3057\u300116\u884c\u76ee\u3067\u671f\u9593\u3092range\u6307\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h4>20\u884c\u76ee\uff5e23\u884c\u76ee<\/h4>\n<p>Pandas\u3092\u4f7f\u3044\u6708\u6bce\u306bSUM\u3059\u308b\u30d1\u30fc\u30c8\u304c\u3053\u3053\u3067\u3059\u3002<\/p>\n<div class=\"borderBox\">\n<ul>\n<li>20\u884c\u76ee\uff1a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092DataFrame\u578b\u306b\u5909\u63db<\/li>\n<li>21\u884c\u76ee\uff1a\u65e5\u4ed8\u306e\u5834\u6240\u3092datetime\u578b\u3068\u3057\u3066\u8a8d\u8b58\u3055\u305b\u308b<\/li>\n<li>22\u884c\u76ee\uff1a\u65e5\u4ed8\u306e\u5834\u6240\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5316<\/li>\n<li>23\u884c\u76ee\uff1a\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u57fa\u306b\u6708\u9593\u96c6\u8a08<\/li>\n<\/ul>\n<\/div>\n<p>\u5168\u4f53\u7684\u306b\u3053\u3093\u306a\u6d41\u308c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u6ce8\u610f\u3057\u306a\u304f\u3066\u306f\u3044\u3051\u306a\u3044\u306e\u304c\u3001SQL\u3067Date\u30ab\u30e9\u30e0\u306b\u3057\u3066\u3044\u3066\u3082DataFrame\u306b\u5165\u308c\u305f\u6642\u306b\u306f\u65e5\u4ed8\u30c7\u30fc\u30bf\u3068\u8a8d\u8b58\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u3067\u300121\u884c\u76ee\u306e\u5de5\u7a0b\u3092\u631f\u3080\u5fc5\u8981\u304c\u3042\u308b\u70b9\u3067\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">list_base[\"date\"] = pd.to_datetime(list_base[\"date\"])<\/pre>\n<h4>25\u884c\u76ee\uff5e30\u884c\u76ee<\/h4>\n<p>\u3053\u306e\u6bb5\u968e\u3067\u751f\u6210\u3055\u308c\u305fDataFrame\u306f\u4e0b\u306e\u3088\u3046\u306a\u59ff\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"paperBox\">date\u3000\u3000\u3000shopA<br \/>\n2020\/09\u3000\u30005800<br \/>\n2020\/10\u3000\u00a0 15351<br \/>\n2020\/11\u3000101870<br \/>\n2020\/12\u3000\u00a0 17502<\/div>\n<div class=\"paperBox\">date\u3000\u3000\u3000shopB<br \/>\n2020\/09\u3000\u30004300<br \/>\n2020\/10\u3000\u30006786<br \/>\n2020\/11\u3000\u30005668<br \/>\n2020\/12\u3000\u30006784<\/div>\n<p>shopB\u3092shopA\u306e\u53f3\u5074\u306b\u8ffd\u52a0\u3057\u3066\u3042\u3052\u308c\u3070\u6b32\u3057\u3044\u30c7\u30fc\u30bf\u306e\u5f62\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001For\u30eb\u30fc\u30d71\u56de\u76ee\u30682\u56de\u76ee\u4ee5\u964d\u3067\u64cd\u4f5c\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u305d\u306e\u70ba\u3001n\u30ab\u30a6\u30f3\u30bf\u3092\u7528\u610f\u3057\u3066\u30eb\u30fc\u30d7\u3054\u3068\u306b\u52a0\u7b97\u3057\u51e6\u7406\u3092\u5909\u3048\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">list_base_02 = pd.concat([list_base_02, ma.rename(columns={'date':'date','sales': sb['shop_code']})],axis=1)<\/pre>\n<p>\u3053\u306e30\u884c\u76ee\u304c\u6a2a\u8ffd\u52a0\u306e\u6307\u793a\u3067\u3059\u3002<\/p>\n<div class=\"borderBox\">\n<p>pd.concat(\u8ffd\u52a0\u5148,\u8ffd\u52a0\u5143,axis=1)<\/p>\n<\/div>\n<p>axis\u3092\u7701\u304f\u3068\u7e26\u8ffd\u52a0\u306b\u306a\u308a\u3001\u4e0b\u306e\u3088\u3046\u306a\u59ff\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"paperBox\">date<br \/>\n2020\/09\u3000\u30005800<br \/>\n2020\/10\u3000\u00a0 15351<br \/>\n2020\/11\u3000101870<br \/>\n2020\/12\u3000\u00a0 17502<br \/>\n2020\/09\u3000\u30004300<br \/>\n2020\/10\u3000\u30006786<br \/>\n2020\/11\u3000\u30005668<br \/>\n2020\/12\u3000\u30006784<\/div>\n<h3>\u307e\u3068\u3081<\/h3>\n<p>\u3053\u306e\u4f5c\u696d\u306f\u30b0\u30e9\u30d5\u5316\u3057\u305f\u3044\u3068\u601d\u3063\u3066\u884c\u3063\u3066\u3044\u305f\u4f5c\u696d\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30b0\u30e9\u30d5\u5316\u306b\u3064\u3044\u3066\u306f\u5176\u3005\u306e\u683c\u7d0d\u3059\u308b\u5f62\u304c\u9055\u3046\u306e\u3067\u305d\u3053\u306b\u5408\u308f\u305b\u3066\u5f62\u6210\u3059\u308b\u9805\u76ee\u304c\u4ee5\u964d\u306b\u5165\u3063\u3066\u304d\u307e\u3059\u3002<br \/>\n\u203b\u4f8b\u3048\u3070json.dumps\u3057\u305f\u308a\u3068\u304b<\/p>\n<p>\u53d6\u3063\u4ed8\u304d\u96e3\u304b\u3063\u305fPandas\u3067\u3059\u304c\u3001\u6570\u3053\u306a\u3057\u3066\u304f\u3068\u6163\u308c\u3066\u304d\u307e\u3059\u306d\u3002<br \/>\n\u4eca\u306f\u6570\u5b57\u3067\u3059\u304c\u3001\u6700\u7d42\u7684\u306b\u306f\u30b3\u30ec\u3092\u6587\u5b57\u3067\u884c\u3063\u3066\u3044\u304d\u305f\u3044\u8a33\u3060\u3057...\u307e\u3060\u30cf\u30fc\u30c9\u30eb\u9ad8\u3044\u306a\u3041\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Django\uff1aMySQL\u306b\u683c\u7d0d\u3055\u308c\u305f\u65e5\u8a08\u58f2\u4e0a\u3092Pandas\u3067\u6708\u96c6\u8a08\u3059\u308b\u65b9\u6cd5 \u6708\u9593\u306e\u58f2\u4e0a\u96c6\u8a08\u3001\u96c6\u5ba2\u5206\u6790etc\u3001\u6708\u3067\u307e\u3068\u3081\u3066\u8868\u793a\u3057\u305f\u3044\u3053\u3068\u306f\u6ca2\u5c71\u3042\u308a\u307e\u3059\u3002 \u3067\u3001\u96c6\u8a08\u3057\u305f\u30c7\u30fc\u30bf\u3092\u30b0\u30e9\u30d5\u5316\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u6b20\u640d\u6708\u304c\u3042\u3063\u305f\u308a\u3059\u308b\u5834\u5408\u306b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2174,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[38],"tags":[862,814,19,99,861,147,53,45],"class_list":["post-2381","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-memorandum","tag-dataframe","tag-django","tag-ec","tag-mysql","tag-pandas","tag-python","tag-53","tag-45"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/qol-kk.com\/wp2\/wp-content\/uploads\/2020\/11\/django.png","_links":{"self":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/comments?post=2381"}],"version-history":[{"count":0,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/posts\/2381\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media\/2174"}],"wp:attachment":[{"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/media?parent=2381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/categories?post=2381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qol-kk.com\/wp2\/wp-json\/wp\/v2\/tags?post=2381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}