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:
Tejas Tp 2025-11-06 18:45:05 +05:30 committed by GitHub
parent 564a329151
commit bfd5e4dbcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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