Open In App

Python | numpy.lookfor() method

Last Updated : 03 Oct, 2019
Improve
Improve
Like Article
Like
Save
Share
Report

With the help of numpy.lookfor() method, we can get the information about the module in the numpy by using numpy.lookfor() method.

Syntax : numpy.lookfor(module_name)
Return : Return the information about the module.

Example #1 :
In this example we can see that by using numpy.lookfor() method, we are able to get the information about the module.




# import numpy
import numpy as np
  
# using numpy.lookfor() method
print(np.lookfor("isin"))


Output :

Search results for ‘isin’
————————-
numpy.isinf
Test element-wise for positive or negative infinity.
numpy.compat.is_pathlib_path
Check whether obj is a pathlib.Path object.
numpy.isin
Calculates `element in test_elements`, broadcasting over `element` only.

Example #2 :




# import numpy
import numpy as np
  
# using numpy.lookfor() method
print(np.lookfor("isdigit"))


Output :

Search results for ‘isdigit’
————————-
numpy.bytes0.isdigit
B.isdigit() -> bool
numpy.str0.isdigit
S.isdigit() -> bool
numpy.chararray
chararray(shape, itemsize=1, unicode=False, buffer=None, offset=0,
numpy.char.isdigit
Returns true for each element if all characters in the string are
numpy.chararray.isdigit
Returns true for each element if all characters in the string are
None


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads