https://365datascience.com/dwqa-answer/answer-for-problem-in-pythons-mathplotlib-module/ -
Hi Prafful,
you get the error because the x_axis variable has not been defined. In the video, the x_axis is a list of coordinates to be plotted with matplotlib.
You can try the following line of code(same as in the video) for an x_axis and it must be defined and run before you start plotting:
x_axis = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]
Best,
Eli
#365datascience #DataScience #data #science #365datascience #BigData #tutorial #infographic #career #salary #education #howto #scientist #engineer #course #engineer #MachineLearning #machine #learning #certificate #udemy
No comments:
Post a Comment