O'Reilly logo

NumPy Cookbook - Second Edition by Ivan Idris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Reading manual pages

We can open the documentation for NumPy functions with the help command. It is not necessary to know the name of a function. We can type a few characters and then let tab completion do its work. For instance, let's browse the available information for the arange() function.

How to do it...

We can browse the available information in either of the following ways:

  • Calling the help function: Call the help command. Type a few characters of the function and then press the Tab key (see the following screenshot):
    How to do it...
  • Querying with a question mark: Another option is to put a question mark behind the function name. You will then, of course, need ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required