What is the difference between 2 arrays whose shapes are-
(442,1) and (442,) ?
Printing both of these produces an identical output, but when I check for equality ==, I get a 2D vector like this-
array([[ True, False, False, ..., False, False, False],
[False, True, False, ..., False, False, False],
[False, False, True, ..., False, False, False],
...,
[False, False, False, ..., True, False, False],
[False, False, False, ..., False, True, False],
[False, False, False, ..., False, False, True]], dtype=bool)
Can someone explain the difference?
question from:https://stackoverflow.com/questions/27570756/difference-between-these-array-shapes-in-numpy