C4W4_Assignment in Sequences, Time Series and Prediction (AI TensorFlow Developer Professional Certificate)

I got this message

Failed test case: There was an error evaluating parse_data_from_file function.
Expected:
No exceptions,
but got:
invalid literal for int() with base 10: ‘1981-01-01’

The underlying dataset has 2 columns. Please do the following using np.loadtxt:

  1. Skip the 1st row since it has only headers (seems like you got this right)
  2. Read only the 2nd column (i.e. temperatures)
  3. Make this column a float data type

Finally, create a times numpy array having the same length as temperatures, each entry corresponding to a timestep (starting at 0)

1 Like