converting int to float in np.array

前端 未结 0 1722
逝去的感伤
逝去的感伤 2020-12-05 02:08

First question ever:D

I am trying to create an np.ndarray as follows:

n = 100000
f = np.ndarray(n, dtype=float)
k = n/5
obs = np.ndarray(k, dtype=float         


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