Portfolio Setup, Data Science, and Python
Contents
1. Portfolio Setup, Data Science, and Python#
Due: 2020-09-12
1.1. Objective & Evaluation#
This assignment is an opportunity to earn level 2 achievements for the process
and python
and confirm that you have all of your tools setup, including your portfolio.
1.2. To Do#
Important
If you have trouble, check the GitHub FAQ on the left before e-mailing
```{warning}
If you have trouble with the (*)d steps, don't worry, we can help work around these later. To help us out, document the errors as bugs on your repository.
```
Your task is to:
Install required software from the Tools & Resource page
Create your portfolio, by accepting the assignment
Learn about your portfolio from the README file on your repository.
edit
_config.yml
to set your name as author and change the logo if you wishFill in
about/index.md
with information about yourself(not evaluated, but useful) and your own definition of data science (graded for level 1 process)(*) Install some additional python packages with:
pip install pip install -r requirements.txt
(this is a python operation, so use anaconda prompt on Windows, if the pip version doesn’t work, try it with conda:conda install --file requirements.txt
) form inside the portfolio folder(*) Configure precommit to help keep your repo clean with
pre-commit install
. If this step doesn’t work, see the portfolio README under “Using your Jupyter Book Portfolio”Add a Jupyter notebook called
grading.ipynb
to theabout
folder and write a function that computes a grade for this course, with the following docstring. Include:a Markdown cell with a heading
your function called
compute_grade
three calls to your function that verify it returns the correct value for different number of badges that produce at three different letter grades.
a basic function that uses conditionals in python will earn level 1 python
to earn level 2 python use pythonic code to write a loop that tests your function’s correctness, by iterating over a list or dictionary. Remember you will have many chances to earn level 2 achievement in python
Add the line
- file: about/grading
in your_toc.yml
file.
Important
remember to add, commit, and push your changes so we can see them
'''
Computes a grade for CSC/DSP310 from numbers of achievements at each level
Parameters:
------------
num_level1 : int
number of level 1 achievements earned
num_level2 : int
number of level 2 achievements earned
num_level3 : int
number of level 3 achievements earned
Returns:
--------
letter_grade : string
letter grade with possible modifier (+/-)
'''
Here are some sample tests you could run to confirm that your function works correctly:
assert compute_grade(15,15,15) == 'A'
assert compute_grade(15,15,13) == 'A-'
assert compute_grade(15,14,14) == 'B-'
assert compute_grade(14,14,14) == 'C-'
assert compute_grade(4,3,1) == 'D'
assert compute_grade(15,15,6) =='B+'
1.3. Submission Instructions#
Create a Jupyter Notebook with your function in your portfolio folder commit and push the changes.
In your browser, view the gh-pages
branch to see your compiled submission, as portfolio.pdf
or by viewing your website.
There will be a pull request on your repository that is made by GitHub classroom, request a review from @rhodypro4dg/fall21instructors.