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
- zip() in Python
- SQL using Python | Set 1
- Use of min() and max() in Python
- bin() in Python
- Any & All in Python
- Python Set | pop()
- set add() in python
- max() and min() in Python
- chr() in Python
- Python | a += b is not always a = a + b
- abs() in Python
- gcd() 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.