Now I have an numpy array X
with certain column names, format and length. How can I set all the values to 0
(or empty) in this array, without deleting the format/names etc.?
|
Use
|
|||||||||||||||||||||
|
You can use slicing:
|
||||
|
Use
If you want, you can save that type information from your structured array for future use too. It's all in the
|
|||||
|