Skip to content

Commit

Permalink
Merge pull request #361 from aviaIguazio/data-ingestion-and-preperation
Browse files Browse the repository at this point in the history
fix file download
  • Loading branch information
aviaIguazio authored Mar 14, 2022
2 parents 4490c40 + ece4c94 commit a2cf04a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions data-ingestion-and-preparation/dask-cluster.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,13 @@
}
],
"source": [
"%%sh\n",
"CSV_PATH=\"/User/examples/ytrip.csv\"\n",
"curl -L \"https://s3.wasabisys.com/iguazio/data/Taxi/yellow_tripdata_2019-01_subset.csv\" > ${CSV_PATH}"
"import mlrun\n",
"import requests\n",
"\n",
"source_url = mlrun.get_sample_path(\"/data/Taxi/yellow_tripdata_2019-01_subset.csv\")\n",
"response = requests.get(source_url, allow_redirects=True)\n",
"with open('/User/examples/ytrip.csv', 'wb') as csv_file:\n",
" csv_file.write(response.content)"
]
},
{
Expand Down Expand Up @@ -634,4 +638,4 @@
},
"nbformat": 4,
"nbformat_minor": 4
}
}

0 comments on commit a2cf04a

Please sign in to comment.