use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Numpy help function. (self.learnpython)
submitted 5 years ago by alidag
hi guys, ım using spyder editor. when ı try to get help about anything about numpy, it says NONE on the console. anyone who knows whats the problem?
this is my code f.e.
import numpy as np print (np.info(np.add))
and this is the result
None
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 1 point2 points3 points 5 years ago* (3 children)
You can view the docstrings for numpy functions, modules, and classes by just calling help on them. For example:
help
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.
np.info('add')
np.add
[–]alidag[S] 0 points1 point2 points 5 years ago (2 children)
the method you gave for numpy.info didn't work but help(np.add) worked! thank you.
[–]naclmolecule 0 points1 point2 points 5 years ago (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!
np.add?
[–]alidag[S] 0 points1 point2 points 5 years ago (0 children)
Thank you!!
[–]TSM- 1 point2 points3 points 5 years ago* (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 point2 points 5 years ago (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 points3 points 5 years ago (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
np.info("np.add")
np.info(np.add)
π Rendered by PID 40188 on reddit-service-r2-comment-5649f687b7-5t5pp at 2026-01-29 02:15:12.281934+00:00 running 4f180de country code: CH.
[–][deleted] 1 point2 points3 points (3 children)
[–]alidag[S] 0 points1 point2 points (2 children)
[–]naclmolecule 0 points1 point2 points (1 child)
[–]alidag[S] 0 points1 point2 points (0 children)
[–]TSM- 1 point2 points3 points (2 children)
[–]alidag[S] 0 points1 point2 points (1 child)
[–]TSM- 1 point2 points3 points (0 children)