mlncn
206530b235
Use .apply rather than np.where for easier/better/not-randomly-failing individual parsing
...
+# On some systems, using np.where worked but others failed. Why it worked is
+# unknown but why it failed is because numpy where evaluates all parts, even
+# the parts that will never get used because the where clause does not apply!
+# This caused the chained strings to fail because— no string.
This worked fine on the System76 and didn't on Bridget's computer, even after
updating the version of python, but anyway, .apply() is better for what i am
trying to do here.
TODO convert other np.where uses to .apply
See #4 in https://datatofish.com/if-condition-in-pandas-dataframe/
2021-05-02 22:38:54 -04:00
mlncn
d8a5e27a97
Save when our last processed date is from so we can pick up where we left off
2021-05-02 20:34:22 -04:00
mlncn
1f451309a7
Add requirements (python) file
2021-05-02 18:39:37 -04:00
benjamin melançon
3dc4d28f2f
Add aliases for NICHQ
2021-04-30 09:19:10 -04:00
benjamin melançon
b8e4a8d094
Regularize Drutopia references
2021-04-28 11:42:00 -04:00
benjamin melançon
f706f0b1e6
Add comment about criticality of fill na
2021-04-28 11:15:53 -04:00
benjamin melançon
ce13e32f7d
Regularize project titles
2021-04-28 11:14:39 -04:00
benjamin melançon
761d04204a
Output all entries, reset index for fun, and write out our CSV file
2021-04-28 11:08:43 -04:00
benjamin melançon
9e97b6b250
Keep our strings from being ragged
2021-04-28 11:05:02 -04:00
benjamin melançon
9faa5c44c4
Document multiple task entries piece
2021-04-28 00:16:15 -04:00
benjamin melançon
367b69da3d
Allow multiple entries to be put into one by splitting with semicolon
2021-04-28 00:14:48 -04:00
benjamin melançon
28550ef3ff
Fix approach to dropping column after using it
2021-04-27 23:51:26 -04:00
benjamin melançon
4314ad0774
Really close to having it all now
2021-04-27 23:37:37 -04:00
benjamin melançon
1c63ab32e8
Actually we want to use regex to be sure we have a digit to multiply
...
Ensure we're splitting on the same asterisk we found with regex
We can tone down the regex now that we've thrown in extra cleanup,
that's coming next.
2021-04-27 22:40:17 -04:00
benjamin melançon
2516b9272d
Document making .contains not a regular expression
2021-04-27 22:31:42 -04:00
benjamin melançon
f31c9d4d47
Start to use our multiplier to have time be x times what we give
2021-04-27 22:30:38 -04:00
benjamin melançon
3921d6774f
Document code
2021-04-27 22:30:07 -04:00
benjamin melançon
f51acf4fec
Aggregate by project as well as description now that we have it
2021-04-27 21:58:19 -04:00
benjamin melançon
796284931e
Split out project into own column if it had been provided (with colon)
2021-04-27 21:45:37 -04:00
benjamin melançon
afbb5dbe1e
Provide first started and last recorded times for each task
2021-04-27 19:48:46 -04:00
benjamin melançon
a42dd0b5e2
Don't overwrite timelog. Max for started isn't working here, weirdly
2021-04-27 14:32:01 -04:00
benjamin melançon
22a2bbae39
The payoff: combine multiple entries in the same day into one larger time unit
2021-04-27 11:32:34 -04:00
benjamin melançon
5f35d57024
Fix extraction of day name
2021-04-27 11:31:27 -04:00
benjamin melançon
e36d149b10
Put our start and recorded times in eastern time for easier review
2021-04-27 11:30:53 -04:00
benjamin melançon
9821ee623f
Very solid progress on manipulating the date
2021-04-27 11:06:20 -04:00
benjamin melançon
8bf975e629
Initial commit: first line on interactive shell that didn't break
2021-04-27 09:41:53 -04:00