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.defchararray.splitlines(arr, keepends = None)
arr : [array-like of str] Given array-like of string.
keepends : [bool, optional] Line breaks are not included in the resulting list unless keepends is given and true.
Return : [ndarray] Return the Array of list objects.
Code #1 :
[‘GeeksforGeeks ‘, ‘ A computer science portal ‘, ‘ for geeks’]
Code #2 :
[‘This is ‘, ‘ a Python-Numpy ‘, ‘ article ‘, ‘ for geeks’]