Update NYC_Motor_Vehicle_Collisions_and_Weather_Dataset.py
Browse files
NYC_Motor_Vehicle_Collisions_and_Weather_Dataset.py
CHANGED
@@ -4,6 +4,8 @@ import tempfile
|
|
4 |
import datasets
|
5 |
import boto3
|
6 |
from botocore.config import Config
|
|
|
|
|
7 |
|
8 |
_CITATION = """\
|
9 |
@misc{ny_motor_vehicle_collisions_weather_dataset,
|
@@ -56,7 +58,7 @@ class NYCMotorVehicleCollisionsWeatherDataset(datasets.GeneratorBasedBuilder):
|
|
56 |
)
|
57 |
|
58 |
def _split_generators(self, dl_manager):
|
59 |
-
s3 = boto3.client('s3', config=Config(signature_version=
|
60 |
|
61 |
bucket_name = 'sta663data1'
|
62 |
file_key = 'NYC_Motor_Vehicle_Collisions_and_Weather_Dataset.json'
|
|
|
4 |
import datasets
|
5 |
import boto3
|
6 |
from botocore.config import Config
|
7 |
+
from botocore import UNSIGNED
|
8 |
+
|
9 |
|
10 |
_CITATION = """\
|
11 |
@misc{ny_motor_vehicle_collisions_weather_dataset,
|
|
|
58 |
)
|
59 |
|
60 |
def _split_generators(self, dl_manager):
|
61 |
+
s3 = boto3.client('s3', config=Config(signature_version=UNSIGNED))
|
62 |
|
63 |
bucket_name = 'sta663data1'
|
64 |
file_key = 'NYC_Motor_Vehicle_Collisions_and_Weather_Dataset.json'
|