Skip to content

Commit ea6934a

Browse files
committed
chore(harvest): remove debug prints
1 parent ff6cf7b commit ea6934a

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

notebooks/harvest-to-toggl.ipynb

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@
4343
" \"Hours\",\n",
4444
"]\n",
4545
"# read CSV file, parsing dates\n",
46-
"source = pd.read_csv(DATA_SOURCE, dtype=dtypes, usecols=cols, parse_dates=[\"Date\"], cache_dates=True)\n",
47-
"source.dtypes"
46+
"source = pd.read_csv(DATA_SOURCE, dtype=dtypes, usecols=cols, parse_dates=[\"Date\"], cache_dates=True)"
4847
]
4948
},
5049
{
@@ -54,8 +53,7 @@
5453
"outputs": [],
5554
"source": [
5655
"# rename columns that can be imported as-is\n",
57-
"source.rename(columns={\"Project\": \"Task\", \"Notes\": \"Description\", \"Date\": \"Start Date\"}, inplace=True)\n",
58-
"source.dtypes"
56+
"source.rename(columns={\"Project\": \"Task\", \"Notes\": \"Description\", \"Date\": \"Start Date\"}, inplace=True)"
5957
]
6058
},
6159
{
@@ -70,8 +68,7 @@
7068
"source[\"Project\"] = \"Xentrans\"\n",
7169
"source[\"Project\"] = source[\"Project\"].astype(\"category\")\n",
7270
"source[\"Billable\"] = \"Yes\"\n",
73-
"source[\"Billable\"] = source[\"Billable\"].astype(\"category\")\n",
74-
"source.dtypes"
71+
"source[\"Billable\"] = source[\"Billable\"].astype(\"category\")"
7572
]
7673
},
7774
{
@@ -83,8 +80,7 @@
8380
"# add the Email column\n",
8481
"source[\"Email\"] = source[\"First Name\"].apply(lambda x: f\"{x.lower()}@compiler.la\").astype(\"category\")\n",
8582
"# drop individual name columns\n",
86-
"source.drop(columns=[\"First Name\", \"Last Name\"], inplace=True)\n",
87-
"source.dtypes"
83+
"source.drop(columns=[\"First Name\", \"Last Name\"], inplace=True)"
8884
]
8985
},
9086
{
@@ -104,8 +100,7 @@
104100
"outputs": [],
105101
"source": [
106102
"# Default start time to 09:00\n",
107-
"source[\"Start Time\"] = pd.to_timedelta(\"09:00:00\")\n",
108-
"source.dtypes"
103+
"source[\"Start Time\"] = pd.to_timedelta(\"09:00:00\")"
109104
]
110105
},
111106
{

0 commit comments

Comments
 (0)