Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

numpy.info() function in Python

  • Last Updated : 25 Oct, 2020

In Numpy we can get all the information about the function, class, or module like what will the parameter and what will be the type of the return value with the help of numpy.info() function. This function returns the help information for a function, class, or module.

Syntax: numpy.info(numpy.info(object=None, maxwidth=76, output=<_io.TextIOWrapper name='<stdout>’ mode=’w’ encoding=’utf-8′>, toplevel=’numpy’))

 Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.  

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course



Parameters:

objectobject or str, optional: This is object or name for input to get information about.

maxwidthint, optional: For Width.

outputfile like object, optional: Object opening mode.

toplevelstr, optional: Start search at this level.

Return: All the information about add function in the numpy.

Example :

Python




import numpy as np
  
  
print(np.info(np.add))

Output :

My Personal Notes arrow_drop_up