On this page
numpy.char.chararray.fill
method
char.chararray.fill(value)- 
    
Fill the array with a scalar value.
- Parameters
 - 
      
valuescalar- 
        
All elements of
awill be assigned this value. 
 
Examples
>>> a = np.array([1, 2]) >>> a.fill(0) >>> a array([0, 0]) >>> a = np.empty(2) >>> a.fill(1) >>> a array([1., 1.]) 
© 2005–2021 NumPy Developers
Licensed under the 3-clause BSD License.
 https://numpy.org/doc/1.20/reference/generated/numpy.char.chararray.fill.html