mesfind / datasets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Datasets

This repo contains data sets that are required in order to perform the applications and exercises we will cover in our course.

Data import with Python

  1. Navigate to the dataset
  2. Select the Raw button
  3. Copy the URL from the browser
  4. Paste the URL in your code (see below)

In this code example we use the URL from the heightdataset (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")

Data import with R

  1. Navigate to the dataset
  2. Select the Raw button
  3. Copy the URL from the browser
  4. Paste the URL in your code (see below)

In this code example we use the URL from the heightdataset (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)

List of further data resources

About

License:MIT License


Languages

Language:Jupyter Notebook 95.4%Language:Roff 3.6%Language:R 0.9%Language:HTML 0.0%