The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Defining a vector

Defining a vector

Super Learner
0
Votes
1
Answer

At the time of defining a vector through following formula, a row vector is defined.
v = np.array([1,2,3])
means vector v(1*3) dimension
 
But why v.shape function return (3,). it seams that shape function treated row vector as column vector.

1 Answer

365 Team
0
Votes

Hi Muhammad,
When we are talking about a vector, in terms of shape, there is no difference between a row vector and a column vector. 
I know it is a bit confusing, however, this is how Python handles vectors. 
Best,
The 365 Team

×
Online Data Science Training
SAVE 60%