Spyder console does not show the variable shape

Viewed 15

My code run perfectly in spyder and provides me all the shapes correctly when the print command is used in the code to display it. However, when I type variable.shape in the spyder console, it give me NameError: name 'variable' is not defined. What could be the issue?

The following is the screenshot with the specific variable name:

enter image description here

As you can see, the output gives me the shape of X_train1 as (219,99,15) but when asked specifically about X_train1.shape, it gives me an error.

0 Answers
Related