What is the error in my code?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What is the error in my code??

I'm doing Data Type for Python, Lesson 14.1. And this is my code: https://code.sololearn.com/ctPdGbk3v89K/?ref=app Please, Explain me why is the error and how can I solve the error.

10th Apr 2021, 12:38 PM
Scarlet Witch
Scarlet Witch - avatar
2 Answers
+ 5
Your "shape" is off by 1. You have 3 heights, 3 ages, 4 names. This confuses pandas and generates an error. To fix it, drop a name, or add a height and a age
10th Apr 2021, 12:49 PM
Steven M
Steven M - avatar
+ 5
Steven M Infinite Thanks!
10th Apr 2021, 12:55 PM
Scarlet Witch
Scarlet Witch - avatar