jttoivon / data-analysis-with-python-spring-2019

Sources of materials for the course Data Analysis with Python - Spring 2019. Newer course instance available here https://csmastersuh.github.io/data_analysis_with_python_2020/
https://jttoivon.github.io/data-analysis-with-python-spring-2019/
4 stars 18 forks source link

part04-e11, tmc test passes, tmc submit fails #4

Closed kotalbert closed 5 years ago

kotalbert commented 5 years ago

Results the same both in Windows cmd and in WSL.


>tmc test  part04-e11_below_zero
Testing: part04-e11_below_zero
Test results: 3/3 tests passed
100%
All tests passed! Submit to server with 'tmc submit'

>tmc submit part04-e11_below_zero
Submitting: part04-e11_below_zero
Failed: test.test_below_zero.BelowZero.test_called
        [Errno 2] File b'src\\kumpula-weather-2017.csv' does not exist: b'src\\kumpula-weather-2017.csv'
Failed: test.test_below_zero.BelowZero.test_output
        [Errno 2] File b'src\\kumpula-weather-2017.csv' does not exist: b'src\\kumpula-weather-2017.csv'
Failed: test.test_below_zero.BelowZero.test_value
        [Errno 2] File b'src\\kumpula-weather-2017.csv' does not exist: b'src\\kumpula-weather-2017.csv'
Test results: 0/3 tests passed
  0%
kotalbert commented 5 years ago

Tried using URL to data set:

pd.read_csv("https://www.cs.helsinki.fi/u/jttoivon/dap/data/fmi/kumpula-weather-2017.csv"

But this results in urllib error:


Failed: test.test_below_zero.BelowZero.test_called
        <urlopen error [Errno -3] Temporary failure in name resolution>

Failed: test.test_below_zero.BelowZero.test_output
        <urlopen error [Errno -3] Temporary failure in name resolution>

Failed: test.test_below_zero.BelowZero.test_value
        <urlopen error [Errno -3] Temporary failure in name resolution>

Test results: 0/3 tests passed