Skip to content

Commit 8deb4f7

Browse files
committedApr 19, 2024
chore(toggl): clean up debug prints
1 parent 3ea66b0 commit 8deb4f7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed
 

‎notebooks/toggl-to-harvest.ipynb

+5-10
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@
6262
"source = pd.read_csv(DATA_SOURCE, dtype=dtypes, usecols=cols, parse_dates=[\"Start date\"], cache_dates=True)\n",
6363
"source[\"Start time\"] = source[\"Start time\"].apply(str_timedelta)\n",
6464
"source[\"Duration\"] = source[\"Duration\"].apply(str_timedelta)\n",
65-
"source.sort_values([\"Start date\", \"Start time\", \"Email\"], inplace=True)\n",
66-
"source.dtypes"
65+
"source.sort_values([\"Start date\", \"Start time\", \"Email\"], inplace=True)"
6766
]
6867
},
6968
{
@@ -73,8 +72,7 @@
7372
"outputs": [],
7473
"source": [
7574
"# rename columns that can be imported as-is\n",
76-
"source.rename(columns={\"Task\": \"Project\", \"Description\": \"Notes\", \"Start date\": \"Date\"}, inplace=True)\n",
77-
"source.dtypes"
75+
"source.rename(columns={\"Task\": \"Project\", \"Description\": \"Notes\", \"Start date\": \"Date\"}, inplace=True)"
7876
]
7977
},
8078
{
@@ -127,8 +125,7 @@
127125
" return first_name\n",
128126
"\n",
129127
"source[\"First Name\"] = source[\"Email\"].apply(get_first_name)\n",
130-
"source[\"First Name\"] = source[\"First Name\"].astype(\"category\")\n",
131-
"source.dtypes"
128+
"source[\"First Name\"] = source[\"First Name\"].astype(\"category\")"
132129
]
133130
},
134131
{
@@ -151,8 +148,7 @@
151148
" return last_name\n",
152149
"\n",
153150
"source[\"Last Name\"] = source[\"Email\"].apply(get_last_name)\n",
154-
"source[\"Last Name\"] = source[\"Last Name\"].astype(\"category\")\n",
155-
"source.dtypes"
151+
"source[\"Last Name\"] = source[\"Last Name\"].astype(\"category\")"
156152
]
157153
},
158154
{
@@ -171,8 +167,7 @@
171167
"metadata": {},
172168
"outputs": [],
173169
"source": [
174-
"source[\"Hours\"] = (source[\"Duration\"].dt.total_seconds()/3600).round(2)\n",
175-
"source.dtypes"
170+
"source[\"Hours\"] = (source[\"Duration\"].dt.total_seconds()/3600).round(2)"
176171
]
177172
},
178173
{

0 commit comments

Comments
 (0)