Skip to content

Commit 8a34a4f

Browse files
committed
Change deprecated pd.datetools.timedelta to datetime.timedelta
1 parent be23269 commit 8a34a4f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

notebooks/04.14-Visualization-With-Seaborn.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -1122,9 +1122,11 @@
11221122
}
11231123
],
11241124
"source": [
1125+
"import datetime\n",
1126+
"\n",
11251127
"def convert_time(s):\n",
11261128
" h, m, s = map(int, s.split(':'))\n",
1127-
" return pd.datetools.timedelta(hours=h, minutes=m, seconds=s)\n",
1129+
" return datetime.timedelta(hours=h, minutes=m, seconds=s)\n",
11281130
"\n",
11291131
"data = pd.read_csv('marathon-data.csv',\n",
11301132
" converters={'split':convert_time, 'final':convert_time})\n",

0 commit comments

Comments
 (0)