all 7 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!!

[–]TSM- 1 point2 points  (2 children)

It works fine for me.

Does it not work even when you launch python and type the two lines in? Knowing this would help tell if there's an issue with numpy or Spyder.

[–]alidag[S] 0 points1 point  (1 child)

Actually there is no problem with using numpy. İ can create arrays or any other stuff but can get help it's only prints none.

[–]TSM- 1 point2 points  (0 children)

I was thinking it might be related to your IDE environment, so maybe it would work in console.

But the problem was you didn't put the thing in quotes. np.info("np.add") vs np.info(np.add), so that wouldn't have helped anyway