Data Structure
Java
Python
HTML
Interview Preparation
Tutorials
Courses
Tracks
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.0K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.3K+ articles
School Learning
11.1K+ articles
JavaScript
9.9K+ articles
Java
9.3K+ articles
Python-numpy
1.3K+ articles
Numpy
73+ articles
Python numpy-String Operation
52 posts
Recent Articles
Popular Articles
How to split the element of a given NumPy array with spaces?
Last Updated: 27 September 2025
In NumPy, string operations can be performed directly on arrays of strings using functions from the numpy.char module. One useful function is numpy.char.split(), which spl...
read more
Python
Python-numpy
Python numpy-String Operation
How to Insert a Space between Characters of all the Elements of a given NumPy Array
Last Updated: 27 September 2025
NumPy provides function np.char.join(), which joins characters of a string using a specified separator.Pythonimport numpy as nparr = np.array(["Hello"])res = np.char.join(...
read more
Python
Python-numpy
Python numpy-String Operation
Repeat all the Elements of a NumPy Array of Strings
Last Updated: 27 September 2025
In NumPy, you can easily repeat each string in an array multiple times. The function numpy.char.multiply() allows you to repeat every element in a string array by a given ...
read more
Python
Python-numpy
Python numpy-String Operation
Element-wise concatenation of two NumPy arrays of string
Last Updated: 04 January 2022
In this article, we will discuss how to concatenate element-wise two arrays of string Example :Input :A = ['Akash', 'Ayush', 'Diksha', 'Radhika']B = ['Kumar', 'Sharma', 'T...
read more
Python
Python-numpy
Python numpy-String Operation
Numpy string operations | startswith() function
Last Updated: 29 August 2020
numpy.core.defchararray.startswith() function returns a boolean array which is True where the string element in starts with prefix, otherwise False.Syntax : numpy.core.def...
read more
Python
Python-numpy
Python numpy-String Operation
Numpy string operations | rindex() function
Last Updated: 29 August 2020
numpy.core.defchararray.rindex() function, raises ValueError when the substring sub is not found. Calls str.rindex element-wise.Syntax : numpy.core.defchararray.rindex(arr...
read more
Python-numpy
Python numpy-String Operation
Numpy
Numpy string operations | rpartition() function
Last Updated: 29 August 2020
In the numpy.core.defchararray.rpartition() function, each element in arr, split the element as the last occurrence of sep, and return 3 strings containing the part before...
read more
Python-numpy
Python numpy-String Operation
Numpy
Numpy string operations | partition() function
Last Updated: 29 August 2020
In the numpy.core.defchararray.partition() function, each element in arr, split the element as the first occurrence of sep, and return 3 strings containing the part before...
read more
Python-numpy
Python numpy-String Operation
Numpy
Numpy string operations | splitlines() function
Last Updated: 29 August 2020
In this numpy.core.defchararray.splitlines() function, each element in arr, return a list of the lines in the element, breaking at line boundaries.Syntax : numpy.core.defc...
read more
Python-numpy
Python numpy-String Operation
Numpy
Numpy string operations | replace() function
Last Updated: 29 August 2020
In the numpy.core.defchararray.replace() function, each element in arr, return a copy of the string with all occurrences of substring old replaced by new.Syntax : numpy.co...
read more
Python-numpy
Python numpy-String Operation
Numpy
Numpy str_len() function
Last Updated: 05 May 2020
numpy.char.str_len(arr) function is used for doing string operations in numpy. It returns the length of every string element wise. Parameters:arr : array_like of str or ...
read more
Python
Python-numpy
Python numpy-String Operation
numpy string operations | split() function
Last Updated: 25 November 2019
numpy.core.defchararray.split(arr, sep=None, maxsplit=None) is another function for doing string operations in numpy.It returns a list of the words in the string, using s...
read more
Python
Python-numpy
Python numpy-String Operation
numpy string operations | rsplit() function
Last Updated: 05 February 2019
numpy.core.defchararray.rsplit(arr, sep=None, maxsplit=None) is another function for doing string operations in numpy. It returns a list of the words in the string, using...
read more
Python
Python-numpy
Python numpy-String Operation
join() function - NumPy
Last Updated: 27 September 2025
The numpy.char.join() function is used to insert a specified separator between every character of each string element in a NumPy array. It is useful for formatting strings...
read more
Python
Python-numpy
Python numpy-String Operation
numpy string operations | ljust() function
Last Updated: 05 February 2019
numpy.core.defchararray.ljust(arr, width, fillchar=' ') is another function for doing string operations in numpy. It returns an array with the elements of arr left-justif...
read more
Python
Python-numpy
Python numpy-String Operation
1
2
3
4