본문 바로가기

Enginius/Python&TensorFlow

numpy append example

posconcat = np.zeros((1, snapbot.NID))


currpos = snapbot.get_currpos()



if posconcat.sum() == 0:  posconcat = currpos.reshape((1, -1))

else: posconcat = np.append(posconcat, currpos.reshape((1, -1)), axis=0)

'Enginius > Python&TensorFlow' 카테고리의 다른 글

Pycharm Usage  (0) 2017.12.01
python subplot  (0) 2017.11.02
numpy append example  (0) 2017.10.31
PCA in Python using numpy  (0) 2017.10.18
python plot  (0) 2017.09.26
Keyboard Event  (0) 2017.09.07