Error Message in 5:35 of Creating DataFrame from Scratch - Part I
Hi,
The Instructor had stated at the abovementioned timing that there is an error message due to the incomplete data in the column
However, the error seem to be caused by the a missing comma in line 4 of the code. When i have input the same code, with comma, a dataframe did return but with the missing row value as an NAN
Confusingly, an error did surface when I used a different method to create the dataframe
could someone kindly advice with an explanation of what is going on? Why is there an error in one but not the other and was there some kind of mistake made by the Instructor?
Hi Janadass!
Thanks for reaching out.
-
Regarding the first error message, we mean there's no data provided for 'ProductPrice'.
-
In the second case, it seems you have missed to provide a value for the price of Product D.
Hope this helps.
Best,
Martin