Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 1.49 KB

README.md

File metadata and controls

33 lines (26 loc) · 1.49 KB

Datasets

A bunch of some 200 datasets. You can call it mini-kaggle :)

Want to download any csv file for local use? Follow the steps mentioned below: 👇

  1. Go to a csv file in a repository of your choice
  2. From the top right bar just above the file section, select and click on "Raw" button
  3. A page will appear with comma separated data with no styling
  4. Copy the page url
  5. Make a folder in your desktop
  6. Open that folder in your favourite code editor and make a simple python file inside the folder. Name it as you please.
  7. Copy this code [From the section below]
  8. Run the python file
  9. The csv file will get downloaded within sometime, depending upon file size
  10. Now you are ready the use it locally!!
import requests
import pandas as pd
url = '{(copied url here)}' 
res = requests.get(url, allow_redirects=True)
with open('download_file_name.csv','wb') as file:
    file.write(res.content)
download_file_name = pd.read_csv('download_file_name.csv')