This repo contains data sets that are required in order to perform the applications and exercises we will cover in our course.
- Navigate to the dataset
- Select the
Raw
button - Copy the URL from the browser
- Paste the URL in your code (see below)
In this code example we use the URL from the height
dataset (https://raw.githubusercontent.com/mesfind/datasets/master/height.csv
) and import the data from GitHub with pandas
:
import pandas as pd
df = pd.read_csv("https://raw.githubusercontent.com/mesfind/datasets/master/height.csv")
- Navigate to the dataset
- Select the
Raw
button - Copy the URL from the browser
- Paste the URL in your code (see below)
In this code example we use the URL from the height
dataset (https://raw.githubusercontent.com/mesfind/datasets/master/height.csv
) and import the data from GitHub with the package readr
:
library(readr)
data <- read_csv("https://raw.githubusercontent.com/mesfind/datasets/master/height.csv")
import pandas as pd
path = 'https://raw.githubusercontent.com/mesfind/datasets/master/banking.csv'
df = pd.read_csv(path)