numpy.core.defchararray.multiply(arr, n): Capitalizes the first letter of string element-wise.
arr : array-like or string.
Returns : Capitalized first letter of the string.
arr1 : ['eAAAaeAAAa', 'ttttdsttttds', 'AAtAAt'] arr2 : ['11sf', 'sdsf2', '1111f2'] Arrays after using capitalize(): arr1 : ['Eaaaaeaaaa' 'Ttttdsttttds' 'Aataat'] arr2 : ['11sf' 'Sdsf2' '1111f2']
arr1 : this is geeks arr2 : for geeks Arrays after using capitalize(): arr1 : This is geeks arr2 : For geeks
- Important differences between Python 2.x and Python 3.x with examples
- Python | Set 4 (Dictionary, Keywords in Python)
- Python | Sort Python Dictionaries by Key or Value
- abs() in Python
- Python | a += b is not always a = a + b
- gcd() in Python
- pow() in Python
- SHA in Python
- zip() in Python
- SQL using Python | Set 1
- Any & All in Python
- chr() in Python
- try and except in Python
- Python Set | pop()
- max() and min() in Python
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.