Machine Learning Prerequisite Exam

21 / 41

np.char.count(arr, sub ='x') is used to count the number of times the string x appears within the elements of the ndarray arr.

Let's say we have the below array:

enter image description here

What would be the output of the above code?

See Answer

Note - Having trouble with the assessment engine? Follow the steps listed here


No hints are availble for this assesment

Loading comments...