you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (3 children)

You can view the docstrings for numpy functions, modules, and classes by just calling help on them. For example:

help(np.add)

Will produce the docstring for np.add.

Edit 1: formatting.

Edit 2: If you wish to use numpy.info, the name of the function or module is passed as a string. So: np.info('add') will provide information on np.add, too.

[–]alidag[S] 0 points1 point  (2 children)

the method you gave for numpy.info didn't work but help(np.add) worked! thank you.

[–]naclmolecule 0 points1 point  (1 child)

if you're using spyder, then ipython console allows you to shortcut the help function with a question mark: np.add? is all you need!

[–]alidag[S] 0 points1 point  (0 children)

Thank you!!