~piotr-machura/scientific-python

ba7a7615035d8d6c37f339b205646aa4ae7fcf44 — Piotr Machura 1 year, 8 months ago d1b44b4 master
Fix typo
2 files changed, 4 insertions(+), 4 deletions(-)

M README.md
M scientific_python/natural_resources.py
M README.md => README.md +2 -2
@@ 367,8 367,8 @@ Germany 1991                        4.654                   0.2372              
        2021                        0.000                   0.0000                       0.000

Does Germany import coal when the consumption increases?
Pearson correltion: 0.04456, p-value 0.81185
Pearson correlation: 0.04456, p-value 0.81185
Does not seem like it. Maybe they just produce more instead?
Pearson correltion: 0.97654, p-value 0.00000
Pearson correlation: 0.97654, p-value 0.00000
That's it!
```

M scientific_python/natural_resources.py => scientific_python/natural_resources.py +2 -2
@@ 34,14 34,14 @@ def main():
        germany["Coal consumption per capita"],
        germany["Coal imports per capita"],
    )
    print(f"Pearson correltion: {pearson:.5f}, p-value {p_value:.5f}")
    print(f"Pearson correlation: {pearson:.5f}, p-value {p_value:.5f}")
    if p_value > 0.05:
        print("Does not seem like it. Maybe they just produce more instead?")
        pearson, p_value = pearsonr(
            germany["Coal production per capita"],
            germany["Coal consumption per capita"],
        )
        print(f"Pearson correltion: {pearson:.5f}, p-value {p_value:.5f}")
        print(f"Pearson correlation: {pearson:.5f}, p-value {p_value:.5f}")
        if p_value > 0.05:
            print("That's not it as well...")
        else: