Skip to content

Commit 14d3739

Browse files
author
Omegastick
committed
1 parent f5976d1 commit 14d3739

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

model/dataset.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"""
55

66
from pathlib import Path
7-
import urllib
87
from typing import Tuple
98

109
import pandas
@@ -27,9 +26,7 @@ def download_data(url: str, train_path: str, test_path: str):
2726
test_path: Path at which to store the test data.
2827
"""
2928
print(f"Downloading dataset from {url}")
30-
Path(train_path).parent.mkdir(exist_ok=True)
31-
response = urllib.request.urlopen(url)
32-
data_frame = pandas.read_excel(response.read())
29+
data_frame = pandas.read_excel(url)
3330

3431
# It looks like the first 48 rows of the dataset are intended to be a test
3532
# set.

0 commit comments

Comments
 (0)