Detect number of dimensions of numpy array (not shape)

后端 未结 0 1714
时光取名叫无心
时光取名叫无心 2021-01-17 04:30

Getting the shape of two different numpy arrays returns tuples

a.shape
Out[131]: (3,)

A.shape
Out[132]: (3, 3)

Based on the tuples, one is a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题