Skip to content

Commit

Permalink
Merge pull request #2 from UBC-DSCI/updates-fall-2023
Browse files Browse the repository at this point in the history
initial material commit
  • Loading branch information
trevorcampbell authored Aug 31, 2023
2 parents e704f72 + a7cfbd6 commit 1b6304e
Show file tree
Hide file tree
Showing 115 changed files with 49,394 additions and 50,225 deletions.
26 changes: 2 additions & 24 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
# Copyright (c) UBC-DSCI Development Team.
# Distributed under the terms of the Modified BSD License.
FROM jupyter/r-notebook:notebook-6.4.3
FROM ubcdsci/py-dsci-100:20230831023622aa49aa

LABEL maintainer="Tiffany Timbers <[email protected]>"

# Install R packages with specific versions from conda-forge
# Packages and versions specified in environment.yml
COPY environment.yml .
RUN conda env update --file environment.yml

# we can't use testthat 2.3 because of weird "no testthat_print" function error https://github.com/r-lib/rlang/issues/1112
# we can't use testthat 3.0.4 (current release) because it doesn't include the fix to make interactive tests error https://github.com/r-lib/testthat/pull/1443
# so we will install testthat from a specific commit hash
# old code to do 2.3.2 : RUN Rscript -e "devtools::install_version('testthat', version = '2.3.2', repos = 'http://cran.us.r-project.org')"
RUN Rscript -e "remotes::install_github('r-lib/testthat@4fcc0c7152704c5c2049441920d78d9dfe448836')"

# Install the palmerpenguins dataset
RUN Rscript -e "devtools::install_github('allisonhorst/[email protected]')"

# Install ISLR package for the Credit data set
RUN Rscript -e "install.packages('ISLR', repos='http://cran.us.r-project.org')"

RUN pip install --no-cache-dir vdom==0.5

# Make sure the contents of our repo are in ${HOME}
# Make sure the contents of our repo are in ${HOME} for binder
COPY . ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
Expand Down
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# Note: this site is under construction. This material currently points to the worksheets for the R version of the textbook. It will be updated shortly.

Jupyter notebook worksheets to accompany [*Data Science: A First Introduction*](https://datasciencebook.ca) by
Tiffany Timbers, Trevor Campbell and Melissa Lee. To use these worksheets, you can either:
Jupyter notebook worksheets to accompany [*Data Science: A First Introduction (Python Edition)*](https://python.datasciencebook.ca),
by Trevor Campbell, Joel Ostblom, and Lindsey Heagy (the book was adapted from the
original R textbook [*Data Science: A First Introduction*](https://datasciencebook.ca) by Tiffany Timbers, Trevor Campbell and Melissa Lee).
To use these worksheets, you can either:

1. Click on a "launch binder" button to open an interactive, but non-persistent, version of the notebook.

2. Download this repository by clicking [here](https://github.com/UBC-DSCI/data-science-a-first-intro-worksheets/archive/refs/heads/main.zip) and follow our computer setup instructions [here](https://datasciencebook.ca/move-to-your-own-machine.html). The setup instructions should be followed to guarantee that your software environment is compatible with the worksheets.
2. Download this repository by clicking [here](https://github.com/UBC-DSCI/data-science-a-first-intro-python-worksheets/archive/refs/heads/main.zip) and follow our computer setup instructions [here](https://python.datasciencebook.ca/move-to-your-own-machine.html). The setup instructions should be followed to guarantee that your software environment is compatible with the worksheets.

Regardless of the method you choose to access them, we also recommend reading our [Combining code and text with Jupyter chapter](https://datasciencebook.ca/getting-started-with-jupyter.html) before starting out.
Regardless of the method you choose to access them, we also recommend reading our [Combining code and text with Jupyter chapter](https://python.datasciencebook.ca/getting-started-with-jupyter.html) before starting out.

| Book chapter | View worksheet on GitHub | Launch worksheet on myBinder.org |
|--------------|-----------|----|
| [R and the tidyverse](https://datasciencebook.ca/intro.html) | [view worksheet](worksheet_intro/worksheet_intro.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_intro%2Fworksheet_intro.ipynb) |
| [Reading in data locally and from the web](https://datasciencebook.ca/reading.html) | [view worksheet](worksheet_reading/worksheet_reading.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_reading%2Fworksheet_reading.ipynb) |
| [Cleaning and wrangling data](https://datasciencebook.ca/wrangling.html) | [view worksheet](worksheet_wrangling/worksheet_wrangling.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_wrangling%2Fworksheet_wrangling.ipynb) |
| [Effective data visualization](https://datasciencebook.ca/viz.html) | [view worksheet](worksheet_viz/worksheet_viz.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_viz%2Fworksheet_viz.ipynb) |
| [Classification I: training & predicting](https://datasciencebook.ca/classification1.html) | [view worksheet](worksheet_classification1/worksheet_classification1.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_classification1%2Fworksheet_classification1.ipynb)|
| [Classification II: evaluation & tuning](https://datasciencebook.ca/classification2.html) | [view worksheet](worksheet_classification2/worksheet_classification2.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_classification2%2Fworksheet_classification2.ipynb) |
| [Regression I: K-nearest neighbors](https://datasciencebook.ca/regression1.html) | [view worksheet](worksheet_regression1/worksheet_regression1.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_regression1%2Fworksheet_regression1.ipynb) |
| [Regression II: linear regression](https://datasciencebook.ca/regression2.html) | [view worksheet](worksheet_regression2/worksheet_regression2.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_regression2%2Fworksheet_regression2.ipynb) |
| [Clustering](https://datasciencebook.ca/clustering.html) | [view worksheet](worksheet_clustering/worksheet_clustering.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_clustering%2Fworksheet_clustering.ipynb) |
| [Statistical inference (sampling)](https://datasciencebook.ca/inference.html) | [view worksheet](worksheet_inference1/worksheet_inference1.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_inference1%2Fworksheet_inference1.ipynb) |
| [Statistical inference (bootstrapping)](https://datasciencebook.ca/inference.html) | [view worksheet](worksheet_inference2/worksheet_inference2.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_inference2%2Fworksheet_inference2.ipynb) |
| [Collaboration with version control](https://datasciencebook.ca/Getting-started-with-version-control.html) | [view worksheet](worksheet_version_control/worksheet_version_control.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-worksheets/HEAD?labpath=worksheet_version_control%2Fworksheet_version_control.ipynb) |
| [Python and pandas](https://python.datasciencebook.ca/intro.html) | [view worksheet](py_worksheet_intro/py_worksheet_intro.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_intro%2Fpy_worksheet_intro.ipynb) |
| [Reading in data locally and from the web](https://python.datasciencebook.ca/reading.html) | [view worksheet](py_worksheet_reading/py_worksheet_reading.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_reading%2Fpy_worksheet_reading.ipynb) |
| [Cleaning and wrangling data](https://python.datasciencebook.ca/wrangling.html) | [view worksheet](py_worksheet_wrangling/py_worksheet_wrangling.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_wrangling%2Fpy_worksheet_wrangling.ipynb) |
| [Effective data visualization](https://python.datasciencebook.ca/viz.html) | [view worksheet](py_worksheet_viz/py_worksheet_viz.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_viz%2Fpy_worksheet_viz.ipynb) |
| [Classification I: training & predicting](https://python.datasciencebook.ca/classification1.html) | [view worksheet](py_worksheet_classification1/py_worksheet_classification1.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_classification1%2Fpy_worksheet_classification1.ipynb)|
| [Classification II: evaluation & tuning](https://python.datasciencebook.ca/classification2.html) | [view worksheet](py_worksheet_classification2/py_worksheet_classification2.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_classification2%2Fpy_worksheet_classification2.ipynb) |
| [Regression I: K-nearest neighbors](https://python.datasciencebook.ca/regression1.html) | [view worksheet](py_worksheet_regression1/py_worksheet_regression1.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_regression1%2Fpy_worksheet_regression1.ipynb) |
| [Regression II: linear regression](https://python.datasciencebook.ca/regression2.html) | [view worksheet](py_worksheet_regression2/py_worksheet_regression2.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_regression2%2Fpy_worksheet_regression2.ipynb) |
| [Clustering](https://python.datasciencebook.ca/clustering.html) | [view worksheet](py_worksheet_clustering/py_worksheet_clustering.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_clustering%2Fpy_worksheet_clustering.ipynb) |
| [Statistical inference (sampling)](https://python.datasciencebook.ca/inference.html) | [view worksheet](py_worksheet_inference1/py_worksheet_inference1.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_inference1%2Fpy_worksheet_inference1.ipynb) |
| [Statistical inference (bootstrapping)](https://python.datasciencebook.ca/inference.html) | [view worksheet](py_worksheet_inference2/py_worksheet_inference2.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_inference2%2Fpy_worksheet_inference2.ipynb) |
| [Collaboration with version control](https://python.datasciencebook.ca/Getting-started-with-version-control.html) | [view worksheet](py_worksheet_version_control/py_worksheet_version_control.ipynb) | [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/UBC-DSCI/data-science-a-first-intro-python-worksheets/HEAD?labpath=py_worksheet_version_control%2Fpy_worksheet_version_control.ipynb) |

### Licence
[Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)](https://creativecommons.org/licenses/by-nc-sa/4.0/)
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
title: "Data Science: A First Introduction Worksheets"
title: "Data Science: A First Introduction (Python Edition) Worksheets"
author: ""
description: ""
theme: minima
Loading

0 comments on commit 1b6304e

Please sign in to comment.