

For example:Įxample 1: Blood transfusion dataset with. To read the dataset, you only need to feed pandas.read_csv() the dataset URL. Thank pandas, the first two cases are the easiest. How to read data or csv file formats from URL In this tutorial, I explain how you can read five different types of data file format, which are: On the other hand, if you read the dataset from the URL, you won’t have any of these problems. Such is also not runnable on the other collab notebooks without asking for permission to your google drive. Moreover, for training a model on online platforms such as google collaboratory, you need to save the dataset on google drive, mount the google drive and use it. Learn how to use urlretrieve from urllib to download a CSV file and save it to your computer. However, for an assignment, if you download the dataset locally, others cannot run your code on the other machines without downloading and replacing the local path. UCI is the most common machine learning repository that contains thousands of data. Old ways won’t open new doors! Photo by Unspalshįor data science students, it happens a lot to work on public datasets.
