Skip to content

Instantly share code, notes, and snippets.

@5Spaak
Created July 6, 2023 17:04
Show Gist options
  • Select an option

  • Save 5Spaak/f2111fcb73f70cc1a2d901b89687a01f to your computer and use it in GitHub Desktop.

Select an option

Save 5Spaak/f2111fcb73f70cc1a2d901b89687a01f to your computer and use it in GitHub Desktop.
# The link of our dataset
medical_charges_url = 'https://raw.githubusercontent.com/JovianML/opendatasets/master/data/medical-charges.csv'
# The urlretrieve function to put data in 'medical.csv' format
urlretrieve(medical_charges_url, 'medical.csv')
# Here, we're using pd.read_csv function to pull or read our data
medical_df = pd.read_csv('medical.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment