Posts by Lucas Mesquita • 21 points
1 post
-
2
votes1
answer100
viewsQ: How to replace a float element with a string in a zeroed array?
I generated a zero matrix through the code: import numpy as np lista = np.zeros([4,4]) Later, I tried to replace an element of the matrix with some string (for example "a"). However, I made an…