Skip to content

Commit 19a0165

Browse files
committed
feat(toggl): calculate decimal hours from duration str
1 parent 761c594 commit 19a0165

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

notebooks/toggl-to-harvest.ipynb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,16 @@
163163
"if len(USER_INFO) > 0 and USER_INFO_FILE:\n",
164164
" write_user_info(USER_INFO)"
165165
]
166+
},
167+
{
168+
"cell_type": "code",
169+
"execution_count": null,
170+
"metadata": {},
171+
"outputs": [],
172+
"source": [
173+
"source[\"Hours\"] = (source[\"Duration\"].dt.total_seconds()/3600).round(2)\n",
174+
"source.dtypes"
175+
]
166176
}
167177
],
168178
"metadata": {

0 commit comments

Comments
 (0)