Skip to main content
100%

Python code voor het downloaden van een bestand

✓ Published0🌍 Public
FFrieseWoudloper
Last edited Aug 4, 2019
Created on Aug 4, 2019

This example demonstrates a simple Python workflow for downloading a remote CSV file and loading it into a pandas DataFrame for inspection. It first uses `urllib.request.urlretrieve` to fetch the wine quality dataset from an AWS S3 bucket and save it locally. Then, `pandas.read_csv` reads the file with a semicolon delimiter, and the head of the resulting DataFrame is printed. The code highlights basic data acquisition and import steps, with the dataset sourced from the UC Irvine Machine Learning Repository via a DataCamp-hosted URL.

AI-generated description

Similar vizzes