diff column to wordcount CSV
authorM. Taylor Saotome-Westlake <[email protected]>
Thu, 16 Mar 2023 05:46:47 +0000 (22:46 -0700)
committerM. Taylor Saotome-Westlake <[email protected]>
Thu, 16 Mar 2023 05:46:47 +0000 (22:46 -0700)
We want four-figure diffs to be normal, not unusually good!

notes/memoir_wordcounts.csv
notes/memoir_wordcounts.py

index f062dee..f2b2fa1 100644 (file)
-04/20/2022,5965\r
-04/21/2022,5990\r
-04/22/2022,5990\r
-04/23/2022,5990\r
-04/24/2022,5997\r
-04/25/2022,5997\r
-04/26/2022,5997\r
-04/27/2022,5997\r
-04/28/2022,6126\r
-04/29/2022,6141\r
-04/30/2022,6746\r
-05/01/2022,7125\r
-05/02/2022,7125\r
-05/03/2022,7125\r
-05/04/2022,7125\r
-05/05/2022,7125\r
-05/06/2022,7127\r
-05/07/2022,7392\r
-05/08/2022,7392\r
-05/09/2022,7392\r
-05/10/2022,7392\r
-05/11/2022,7392\r
-05/12/2022,7392\r
-05/13/2022,7412\r
-05/14/2022,7412\r
-05/15/2022,8117\r
-05/16/2022,8117\r
-05/17/2022,8117\r
-05/18/2022,8117\r
-05/19/2022,7819\r
-05/20/2022,8783\r
-05/21/2022,8783\r
-05/22/2022,8787\r
-05/23/2022,8787\r
-05/24/2022,8787\r
-05/25/2022,8682\r
-05/26/2022,8682\r
-05/27/2022,8682\r
-05/28/2022,8682\r
-05/29/2022,10110\r
-05/30/2022,10308\r
-05/31/2022,10308\r
-06/01/2022,10308\r
-06/02/2022,10308\r
-06/03/2022,10308\r
-06/04/2022,10921\r
-06/05/2022,11437\r
-06/06/2022,11437\r
-06/07/2022,11537\r
-06/08/2022,11537\r
-06/09/2022,11537\r
-06/10/2022,11537\r
-06/11/2022,13077\r
-06/12/2022,13077\r
-06/13/2022,13077\r
-06/14/2022,13077\r
-06/15/2022,13077\r
-06/16/2022,13077\r
-06/17/2022,13076\r
-06/18/2022,13089\r
-06/19/2022,13089\r
-06/20/2022,13089\r
-06/21/2022,13089\r
-06/22/2022,13089\r
-06/23/2022,13089\r
-06/24/2022,13089\r
-06/25/2022,12391\r
-06/26/2022,13313\r
-06/27/2022,13313\r
-06/28/2022,13313\r
-06/29/2022,13313\r
-06/30/2022,13313\r
-07/01/2022,13313\r
-07/02/2022,13313\r
-07/03/2022,13341\r
-07/04/2022,13341\r
-07/05/2022,13341\r
-07/06/2022,13341\r
-07/07/2022,13341\r
-07/08/2022,13341\r
-07/09/2022,13349\r
-07/10/2022,14761\r
-07/11/2022,14761\r
-07/12/2022,14761\r
-07/13/2022,14761\r
-07/14/2022,14761\r
-07/15/2022,14983\r
-07/16/2022,14983\r
-07/17/2022,16414\r
-07/18/2022,16414\r
-07/19/2022,16414\r
-07/20/2022,16414\r
-07/21/2022,16458\r
-07/22/2022,17815\r
-07/23/2022,20289\r
-07/24/2022,20082\r
-07/25/2022,20082\r
-07/26/2022,20082\r
-07/27/2022,20082\r
-07/28/2022,20082\r
-07/29/2022,20170\r
-07/30/2022,19882\r
-07/31/2022,20391\r
-08/01/2022,20391\r
-08/02/2022,20391\r
-08/03/2022,20388\r
-08/04/2022,20381\r
-08/05/2022,21349\r
-08/06/2022,22781\r
-08/07/2022,24301\r
-08/08/2022,24301\r
-08/09/2022,24301\r
-08/10/2022,24301\r
-08/11/2022,24301\r
-08/12/2022,24379\r
-08/13/2022,24800\r
-08/14/2022,25177\r
-08/15/2022,25177\r
-08/16/2022,25177\r
-08/17/2022,25177\r
-08/18/2022,25205\r
-08/19/2022,25615\r
-08/20/2022,34503\r
-08/21/2022,34900\r
-08/22/2022,34900\r
-08/23/2022,34900\r
-08/24/2022,34900\r
-08/25/2022,35059\r
-08/26/2022,35853\r
-08/27/2022,36459\r
-08/28/2022,36784\r
-08/29/2022,36784\r
-08/30/2022,36784\r
-08/31/2022,36784\r
-09/01/2022,37008\r
-09/02/2022,38663\r
-09/03/2022,40167\r
-09/04/2022,40484\r
-09/05/2022,41661\r
-09/06/2022,41661\r
-09/07/2022,41661\r
-09/08/2022,41661\r
-09/09/2022,41815\r
-09/10/2022,42902\r
-09/11/2022,44094\r
-09/12/2022,44094\r
-09/13/2022,44094\r
-09/14/2022,44171\r
-09/15/2022,44858\r
-09/16/2022,45554\r
-09/17/2022,45628\r
-09/18/2022,46675\r
-09/19/2022,46675\r
-09/20/2022,46675\r
-09/21/2022,46675\r
-09/22/2022,46724\r
-09/23/2022,46724\r
-09/24/2022,46745\r
-09/25/2022,47741\r
-09/26/2022,47741\r
-09/27/2022,47741\r
-09/28/2022,47741\r
-09/29/2022,47865\r
-09/30/2022,49533\r
-10/01/2022,50660\r
-10/02/2022,51674\r
-10/03/2022,51674\r
-10/04/2022,51674\r
-10/05/2022,51674\r
-10/06/2022,51826\r
-10/07/2022,52190\r
-10/08/2022,52618\r
-10/09/2022,53486\r
-10/10/2022,53486\r
-10/11/2022,53486\r
-10/12/2022,53486\r
-10/13/2022,53408\r
-10/14/2022,53841\r
-10/15/2022,56326\r
-10/16/2022,58138\r
-10/17/2022,58138\r
-10/18/2022,58138\r
-10/19/2022,58138\r
-10/20/2022,58312\r
-10/21/2022,60860\r
-10/22/2022,61571\r
-10/23/2022,62788\r
-10/24/2022,62788\r
-10/25/2022,62922\r
-10/26/2022,62922\r
-10/27/2022,62974\r
-10/28/2022,63215\r
-10/29/2022,64488\r
-10/30/2022,66302\r
-10/31/2022,66302\r
-11/01/2022,66302\r
-11/02/2022,66302\r
-11/03/2022,66302\r
-11/04/2022,67058\r
-11/05/2022,67849\r
-11/06/2022,68083\r
-11/07/2022,68113\r
-11/08/2022,68222\r
-11/09/2022,68222\r
-11/10/2022,68227\r
-11/11/2022,68913\r
-11/12/2022,69792\r
-11/13/2022,70738\r
-11/14/2022,70738\r
-11/15/2022,70738\r
-11/16/2022,70738\r
-11/17/2022,70806\r
-11/18/2022,71400\r
-11/19/2022,71859\r
-11/20/2022,73074\r
-11/21/2022,73179\r
-11/22/2022,73179\r
-11/23/2022,73179\r
-11/24/2022,73348\r
-11/25/2022,73972\r
-11/26/2022,73972\r
-11/27/2022,74002\r
-11/28/2022,74002\r
-11/29/2022,74002\r
-11/30/2022,74002\r
-12/01/2022,74002\r
-12/02/2022,74002\r
-12/03/2022,74002\r
-12/04/2022,74002\r
-12/05/2022,74002\r
-12/06/2022,74002\r
-12/07/2022,74002\r
-12/08/2022,74020\r
-12/09/2022,74021\r
-12/10/2022,74021\r
-12/11/2022,74021\r
-12/12/2022,74021\r
-12/13/2022,74021\r
-12/14/2022,74021\r
-12/15/2022,74021\r
-12/16/2022,74039\r
-12/17/2022,74039\r
-12/18/2022,74039\r
-12/19/2022,74039\r
-12/20/2022,74039\r
-12/21/2022,74039\r
-12/22/2022,74043\r
-12/23/2022,74043\r
-12/24/2022,74043\r
-12/25/2022,74055\r
-12/26/2022,74255\r
-12/27/2022,74255\r
-12/28/2022,74255\r
-12/29/2022,74255\r
-12/30/2022,74255\r
-12/31/2022,74255\r
-01/01/2023,74255\r
-01/02/2023,74285\r
-01/03/2023,74285\r
-01/04/2023,74295\r
-01/05/2023,74295\r
-01/06/2023,74757\r
-01/07/2023,75297\r
-01/08/2023,75830\r
-01/09/2023,76029\r
-01/10/2023,76060\r
-01/11/2023,76304\r
-01/12/2023,77319\r
-01/13/2023,77337\r
-01/14/2023,78035\r
-01/15/2023,78035\r
-01/16/2023,78041\r
-01/17/2023,78041\r
-01/18/2023,78303\r
-01/19/2023,79364\r
-01/20/2023,79467\r
-01/21/2023,80707\r
-01/22/2023,80807\r
-01/23/2023,81043\r
-01/24/2023,82333\r
-01/25/2023,82854\r
-01/26/2023,82854\r
-01/27/2023,83140\r
-01/28/2023,83140\r
-01/29/2023,83140\r
-01/30/2023,83212\r
-01/31/2023,83212\r
-02/01/2023,83212\r
-02/02/2023,83212\r
-02/03/2023,83212\r
-02/04/2023,83212\r
-02/05/2023,83212\r
-02/06/2023,84301\r
-02/07/2023,84302\r
-02/08/2023,84876\r
-02/09/2023,85615\r
-02/10/2023,86129\r
-02/11/2023,86440\r
-02/12/2023,86444\r
-02/13/2023,86692\r
-02/14/2023,86644\r
-02/15/2023,86916\r
-02/16/2023,87387\r
-02/17/2023,87485\r
-02/18/2023,87486\r
-02/19/2023,87521\r
-02/20/2023,87941\r
-02/21/2023,88033\r
-02/22/2023,89283\r
-02/23/2023,89488\r
-02/24/2023,90029\r
-02/25/2023,90434\r
-02/26/2023,90434\r
-02/27/2023,90953\r
-02/28/2023,91322\r
-03/01/2023,91445\r
-03/02/2023,91445\r
-03/03/2023,91445\r
-03/04/2023,91445\r
-03/05/2023,91445\r
-03/06/2023,91828\r
-03/07/2023,92325\r
-03/08/2023,94105\r
-03/09/2023,95148\r
-03/10/2023,96107\r
-03/11/2023,96547\r
-03/12/2023,96562\r
-03/13/2023,97284\r
-03/14/2023,97285\r
-03/15/2023,
\ No newline at end of file
+04/17/2022,5965,\r
+04/18/2022,5965,0\r
+04/19/2022,5965,0\r
+04/20/2022,5965,0\r
+04/21/2022,5990,25\r
+04/22/2022,5990,0\r
+04/23/2022,5990,0\r
+04/24/2022,5997,7\r
+04/25/2022,5997,0\r
+04/26/2022,5997,0\r
+04/27/2022,5997,0\r
+04/28/2022,6126,129\r
+04/29/2022,6141,15\r
+04/30/2022,6746,605\r
+05/01/2022,7125,379\r
+05/02/2022,7125,0\r
+05/03/2022,7125,0\r
+05/04/2022,7125,0\r
+05/05/2022,7125,0\r
+05/06/2022,7127,2\r
+05/07/2022,7392,265\r
+05/08/2022,7392,0\r
+05/09/2022,7392,0\r
+05/10/2022,7392,0\r
+05/11/2022,7392,0\r
+05/12/2022,7392,0\r
+05/13/2022,7412,20\r
+05/14/2022,7412,0\r
+05/15/2022,8117,705\r
+05/16/2022,8117,0\r
+05/17/2022,8117,0\r
+05/18/2022,8117,0\r
+05/19/2022,7819,-298\r
+05/20/2022,8783,964\r
+05/21/2022,8783,0\r
+05/22/2022,8787,4\r
+05/23/2022,8787,0\r
+05/24/2022,8787,0\r
+05/25/2022,8682,-105\r
+05/26/2022,8682,0\r
+05/27/2022,8682,0\r
+05/28/2022,8682,0\r
+05/29/2022,10110,1428\r
+05/30/2022,10308,198\r
+05/31/2022,10308,0\r
+06/01/2022,10308,0\r
+06/02/2022,10308,0\r
+06/03/2022,10308,0\r
+06/04/2022,10921,613\r
+06/05/2022,11437,516\r
+06/06/2022,11437,0\r
+06/07/2022,11537,100\r
+06/08/2022,11537,0\r
+06/09/2022,11537,0\r
+06/10/2022,11537,0\r
+06/11/2022,13077,1540\r
+06/12/2022,13077,0\r
+06/13/2022,13077,0\r
+06/14/2022,13077,0\r
+06/15/2022,13077,0\r
+06/16/2022,13077,0\r
+06/17/2022,13076,-1\r
+06/18/2022,13089,13\r
+06/19/2022,13089,0\r
+06/20/2022,13089,0\r
+06/21/2022,13089,0\r
+06/22/2022,13089,0\r
+06/23/2022,13089,0\r
+06/24/2022,13089,0\r
+06/25/2022,12391,-698\r
+06/26/2022,13313,922\r
+06/27/2022,13313,0\r
+06/28/2022,13313,0\r
+06/29/2022,13313,0\r
+06/30/2022,13313,0\r
+07/01/2022,13313,0\r
+07/02/2022,13313,0\r
+07/03/2022,13341,28\r
+07/04/2022,13341,0\r
+07/05/2022,13341,0\r
+07/06/2022,13341,0\r
+07/07/2022,13341,0\r
+07/08/2022,13341,0\r
+07/09/2022,13349,8\r
+07/10/2022,14761,1412\r
+07/11/2022,14761,0\r
+07/12/2022,14761,0\r
+07/13/2022,14761,0\r
+07/14/2022,14761,0\r
+07/15/2022,14983,222\r
+07/16/2022,14983,0\r
+07/17/2022,16414,1431\r
+07/18/2022,16414,0\r
+07/19/2022,16414,0\r
+07/20/2022,16414,0\r
+07/21/2022,16458,44\r
+07/22/2022,17815,1357\r
+07/23/2022,20289,2474\r
+07/24/2022,20082,-207\r
+07/25/2022,20082,0\r
+07/26/2022,20082,0\r
+07/27/2022,20082,0\r
+07/28/2022,20082,0\r
+07/29/2022,20170,88\r
+07/30/2022,19882,-288\r
+07/31/2022,20391,509\r
+08/01/2022,20391,0\r
+08/02/2022,20391,0\r
+08/03/2022,20388,-3\r
+08/04/2022,20381,-7\r
+08/05/2022,21349,968\r
+08/06/2022,22781,1432\r
+08/07/2022,24301,1520\r
+08/08/2022,24301,0\r
+08/09/2022,24301,0\r
+08/10/2022,24301,0\r
+08/11/2022,24301,0\r
+08/12/2022,24379,78\r
+08/13/2022,24800,421\r
+08/14/2022,25177,377\r
+08/15/2022,25177,0\r
+08/16/2022,25177,0\r
+08/17/2022,25177,0\r
+08/18/2022,25205,28\r
+08/19/2022,25615,410\r
+08/20/2022,34503,8888\r
+08/21/2022,34900,397\r
+08/22/2022,34900,0\r
+08/23/2022,34900,0\r
+08/24/2022,34900,0\r
+08/25/2022,35059,159\r
+08/26/2022,35853,794\r
+08/27/2022,36459,606\r
+08/28/2022,36784,325\r
+08/29/2022,36784,0\r
+08/30/2022,36784,0\r
+08/31/2022,36784,0\r
+09/01/2022,37008,224\r
+09/02/2022,38663,1655\r
+09/03/2022,40167,1504\r
+09/04/2022,40484,317\r
+09/05/2022,41661,1177\r
+09/06/2022,41661,0\r
+09/07/2022,41661,0\r
+09/08/2022,41661,0\r
+09/09/2022,41815,154\r
+09/10/2022,42902,1087\r
+09/11/2022,44094,1192\r
+09/12/2022,44094,0\r
+09/13/2022,44094,0\r
+09/14/2022,44171,77\r
+09/15/2022,44858,687\r
+09/16/2022,45554,696\r
+09/17/2022,45628,74\r
+09/18/2022,46675,1047\r
+09/19/2022,46675,0\r
+09/20/2022,46675,0\r
+09/21/2022,46675,0\r
+09/22/2022,46724,49\r
+09/23/2022,46724,0\r
+09/24/2022,46745,21\r
+09/25/2022,47741,996\r
+09/26/2022,47741,0\r
+09/27/2022,47741,0\r
+09/28/2022,47741,0\r
+09/29/2022,47865,124\r
+09/30/2022,49533,1668\r
+10/01/2022,50660,1127\r
+10/02/2022,51674,1014\r
+10/03/2022,51674,0\r
+10/04/2022,51674,0\r
+10/05/2022,51674,0\r
+10/06/2022,51826,152\r
+10/07/2022,52190,364\r
+10/08/2022,52618,428\r
+10/09/2022,53486,868\r
+10/10/2022,53486,0\r
+10/11/2022,53486,0\r
+10/12/2022,53486,0\r
+10/13/2022,53408,-78\r
+10/14/2022,53841,433\r
+10/15/2022,56326,2485\r
+10/16/2022,58138,1812\r
+10/17/2022,58138,0\r
+10/18/2022,58138,0\r
+10/19/2022,58138,0\r
+10/20/2022,58312,174\r
+10/21/2022,60860,2548\r
+10/22/2022,61571,711\r
+10/23/2022,62788,1217\r
+10/24/2022,62788,0\r
+10/25/2022,62922,134\r
+10/26/2022,62922,0\r
+10/27/2022,62974,52\r
+10/28/2022,63215,241\r
+10/29/2022,64488,1273\r
+10/30/2022,66302,1814\r
+10/31/2022,66302,0\r
+11/01/2022,66302,0\r
+11/02/2022,66302,0\r
+11/03/2022,66302,0\r
+11/04/2022,67058,756\r
+11/05/2022,67849,791\r
+11/06/2022,68083,234\r
+11/07/2022,68113,30\r
+11/08/2022,68222,109\r
+11/09/2022,68222,0\r
+11/10/2022,68227,5\r
+11/11/2022,68913,686\r
+11/12/2022,69792,879\r
+11/13/2022,70738,946\r
+11/14/2022,70738,0\r
+11/15/2022,70738,0\r
+11/16/2022,70738,0\r
+11/17/2022,70806,68\r
+11/18/2022,71400,594\r
+11/19/2022,71859,459\r
+11/20/2022,73074,1215\r
+11/21/2022,73179,105\r
+11/22/2022,73179,0\r
+11/23/2022,73179,0\r
+11/24/2022,73348,169\r
+11/25/2022,73972,624\r
+11/26/2022,73972,0\r
+11/27/2022,74002,30\r
+11/28/2022,74002,0\r
+11/29/2022,74002,0\r
+11/30/2022,74002,0\r
+12/01/2022,74002,0\r
+12/02/2022,74002,0\r
+12/03/2022,74002,0\r
+12/04/2022,74002,0\r
+12/05/2022,74002,0\r
+12/06/2022,74002,0\r
+12/07/2022,74002,0\r
+12/08/2022,74020,18\r
+12/09/2022,74021,1\r
+12/10/2022,74021,0\r
+12/11/2022,74021,0\r
+12/12/2022,74021,0\r
+12/13/2022,74021,0\r
+12/14/2022,74021,0\r
+12/15/2022,74021,0\r
+12/16/2022,74039,18\r
+12/17/2022,74039,0\r
+12/18/2022,74039,0\r
+12/19/2022,74039,0\r
+12/20/2022,74039,0\r
+12/21/2022,74039,0\r
+12/22/2022,74043,4\r
+12/23/2022,74043,0\r
+12/24/2022,74043,0\r
+12/25/2022,74055,12\r
+12/26/2022,74255,200\r
+12/27/2022,74255,0\r
+12/28/2022,74255,0\r
+12/29/2022,74255,0\r
+12/30/2022,74255,0\r
+12/31/2022,74255,0\r
+01/01/2023,74255,0\r
+01/02/2023,74285,30\r
+01/03/2023,74285,0\r
+01/04/2023,74295,10\r
+01/05/2023,74295,0\r
+01/06/2023,74757,462\r
+01/07/2023,75297,540\r
+01/08/2023,75830,533\r
+01/09/2023,76029,199\r
+01/10/2023,76060,31\r
+01/11/2023,76304,244\r
+01/12/2023,77319,1015\r
+01/13/2023,77337,18\r
+01/14/2023,78093,756\r
+01/15/2023,78093,0\r
+01/16/2023,78041,-52\r
+01/17/2023,78041,0\r
+01/18/2023,78303,262\r
+01/19/2023,79364,1061\r
+01/20/2023,79467,103\r
+01/21/2023,80707,1240\r
+01/22/2023,80807,100\r
+01/23/2023,81043,236\r
+01/24/2023,82333,1290\r
+01/25/2023,82854,521\r
+01/26/2023,82854,0\r
+01/27/2023,83140,286\r
+01/28/2023,83140,0\r
+01/29/2023,83140,0\r
+01/30/2023,83212,72\r
+01/31/2023,83212,0\r
+02/01/2023,83212,0\r
+02/02/2023,83212,0\r
+02/03/2023,83212,0\r
+02/04/2023,83212,0\r
+02/05/2023,83212,0\r
+02/06/2023,84301,1089\r
+02/07/2023,84302,1\r
+02/08/2023,84876,574\r
+02/09/2023,85615,739\r
+02/10/2023,86129,514\r
+02/11/2023,86440,311\r
+02/12/2023,86444,4\r
+02/13/2023,86692,248\r
+02/14/2023,86692,0\r
+02/15/2023,86916,224\r
+02/16/2023,87387,471\r
+02/17/2023,87485,98\r
+02/18/2023,87485,0\r
+02/19/2023,87521,36\r
+02/20/2023,87927,406\r
+02/21/2023,88121,194\r
+02/22/2023,89283,1162\r
+02/23/2023,89488,205\r
+02/24/2023,90059,571\r
+02/25/2023,90434,375\r
+02/26/2023,90434,0\r
+02/27/2023,90953,519\r
+02/28/2023,91322,369\r
+03/01/2023,91322,0\r
+03/02/2023,91322,0\r
+03/03/2023,91322,0\r
+03/04/2023,91322,0\r
+03/05/2023,91322,0\r
+03/06/2023,91828,506\r
+03/07/2023,92325,497\r
+03/08/2023,94105,1780\r
+03/09/2023,95147,1042\r
+03/10/2023,96107,960\r
+03/11/2023,96547,440\r
+03/12/2023,96562,15\r
+03/13/2023,97282,720\r
+03/14/2023,97282,0\r
+03/15/2023,98493,1211
\ No newline at end of file
index 14aebc4..ac1aec4 100755 (executable)
@@ -63,8 +63,11 @@ def normalize_dates(wordcounts):
 def write_csv(wordcounts):
     with open("memoir_wordcounts.csv", 'w') as f:
         writer = csv.writer(f)
+        previous = None
         for date, wordcount in wordcounts:
-            writer.writerow([date.strftime("%m/%d/%Y"), wordcount])
+            diff = wordcount - previous if previous is not None else ''
+            writer.writerow([date.strftime("%m/%d/%Y"), wordcount, diff])
+            previous = wordcount
 
 
 if __name__ in "__main__":