Posted on 28th February 2024
The shape means a tuple which provides you with a sign of the various dimensions are there in the array. Assume you have loaded some data in some variable train and you want to check the dimensions of that file then you can do something like this
train.shape# this will display the number of rows
train.shape# this will display the number of columns
STILL GOT QUERIES?