What is the error in my code?? | Sololearn: Learn to code for FREE!


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.

4/10/2021 12:38:11 PM

Scarlet Witch

2 Answers

New Answer


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


Steven M Infinite Thanks!