Skip to content

Commit 5267c05

Browse files
committed
chore(toggl): clean up debug prints
1 parent 0326623 commit 5267c05

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

notebooks/toggl-to-harvest.ipynb

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@
6161
"source = pd.read_csv(DATA_SOURCE, dtype=dtypes, usecols=cols, parse_dates=[\"Start date\"], cache_dates=True)\n",
6262
"source[\"Start time\"] = source[\"Start time\"].apply(str_timedelta)\n",
6363
"source[\"Duration\"] = source[\"Duration\"].apply(str_timedelta)\n",
64-
"source.sort_values([\"Start date\", \"Start time\", \"Email\"], inplace=True)\n",
65-
"source.dtypes"
64+
"source.sort_values([\"Start date\", \"Start time\", \"Email\"], inplace=True)"
6665
]
6766
},
6867
{
@@ -72,8 +71,7 @@
7271
"outputs": [],
7372
"source": [
7473
"# rename columns that can be imported as-is\n",
75-
"source.rename(columns={\"Task\": \"Project\", \"Description\": \"Notes\", \"Start date\": \"Date\"}, inplace=True)\n",
76-
"source.dtypes"
74+
"source.rename(columns={\"Task\": \"Project\", \"Description\": \"Notes\", \"Start date\": \"Date\"}, inplace=True)"
7775
]
7876
},
7977
{
@@ -126,8 +124,7 @@
126124
" return first_name\n",
127125
"\n",
128126
"source[\"First Name\"] = source[\"Email\"].apply(get_first_name)\n",
129-
"source[\"First Name\"] = source[\"First Name\"].astype(\"category\")\n",
130-
"source.dtypes"
127+
"source[\"First Name\"] = source[\"First Name\"].astype(\"category\")"
131128
]
132129
},
133130
{
@@ -150,8 +147,7 @@
150147
" return last_name\n",
151148
"\n",
152149
"source[\"Last Name\"] = source[\"Email\"].apply(get_last_name)\n",
153-
"source[\"Last Name\"] = source[\"Last Name\"].astype(\"category\")\n",
154-
"source.dtypes"
150+
"source[\"Last Name\"] = source[\"Last Name\"].astype(\"category\")"
155151
]
156152
},
157153
{
@@ -170,8 +166,7 @@
170166
"metadata": {},
171167
"outputs": [],
172168
"source": [
173-
"source[\"Hours\"] = (source[\"Duration\"].dt.total_seconds()/3600).round(2)\n",
174-
"source.dtypes"
169+
"source[\"Hours\"] = (source[\"Duration\"].dt.total_seconds()/3600).round(2)"
175170
]
176171
},
177172
{

0 commit comments

Comments
 (0)