Skip to content

Commit 0c2442e

Browse files
committed
2 parents 200475d + 3425540 commit 0c2442e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ If you are on Windows, it's [potentially more complicated](https://stackoverflow
3838
4. [Linear Algebra](https://github.com/joelgrus/data-science-from-scratch/blob/master/scratch/linear_algebra.py)
3939
5. [Statistics](https://github.com/joelgrus/data-science-from-scratch/blob/master/scratch/statistics.py)
4040
6. [Probability](https://github.com/joelgrus/data-science-from-scratch/blob/master/scratch/probability.py)
41-
7. [Hypothesis and Inference](https://github.com/joelgrus/data-science-from-scratch/blob/master/scratch/hypothesis_and_inference.py)
41+
7. [Hypothesis and Inference](https://github.com/joelgrus/data-science-from-scratch/blob/master/scratch/inference.py)
4242
8. [Gradient Descent](https://github.com/joelgrus/data-science-from-scratch/blob/master/scratch/gradient_descent.py)
4343
9. [Getting Data](https://github.com/joelgrus/data-science-from-scratch/blob/master/scratch/getting_data.py)
4444
10. [Working With Data](https://github.com/joelgrus/data-science-from-scratch/blob/master/scratch/working_with_data.py)

‎scratch/crash_course_in_python.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,12 +714,12 @@ def ugly_function(value: int, operation: Union[str, int, float, bool]) -> int:
714714
...
715715

716716
def total(xs: list) -> float:
717-
return sum(total)
717+
return sum(xs)
718718

719719
from typing import List # note capital L
720720

721721
def total(xs: List[float]) -> float:
722-
return sum(total)
722+
return sum(xs)
723723

724724
# This is how to type-annotate variables when you define them.
725725
# But this is unnecessary; it's "obvious" x is an int.
@@ -769,4 +769,3 @@ def comma_repeater(s: str, n: int) -> str:
769769

770770
def total(xs: Numbers) -> Number:
771771
return sum(xs)
772-

0 commit comments

Comments
 (0)