Update np.genfromtxt to use int and filling_values
Changed dtype from np.int to int and added filling_values parameter.
This commit is contained in:
parent
564a329151
commit
bfd5e4dbcb
@ -696,7 +696,7 @@ s = StringIO('''1, 2, 3, 4, 5
|
|||||||
|
|
||||||
, , 9,10,11
|
, , 9,10,11
|
||||||
''')
|
''')
|
||||||
Z = np.genfromtxt(s, delimiter=",", dtype=np.int)
|
Z = np.genfromtxt(s, delimiter=",", dtype=int, filling_values=0)
|
||||||
print(Z)
|
print(Z)
|
||||||
|
|
||||||
< q55
|
< q55
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user