Asish Biswas
Nov 13, 2022

--

Hello Patrick,

I'm glad to hear that you liked the post. I'm also surprised to see that you faced problems running the code.

Actually the type of results.keys() and results.values() are dict_keys and dict_values respectively. Thats might be causing the issue because of the Python or Matplotlib version that you are using.

Try replacing the line drawing the plot with this:

plt.plot(list(results.keys()), list(results.values()), marker='o', linestyle='--')

--

--

Responses (1)