Skip to content

Commit

Permalink
Merge pull request #180 from benlaken/gh-pages
Browse files Browse the repository at this point in the history
Added callout for way to find methods in IPython
  • Loading branch information
valentina-s committed Jun 20, 2016
2 parents 1583319 + 550588a commit 4f946bc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 01-numpy.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,19 @@ minimum inflammation: 0.0
standard deviation: 4.61383319712
~~~

> ## Mystery methods in IPython {.callout}
>
> How did we know what methods data has and how to use them? When you are working
> on your own data it might be something different to a numpy object: how will
> you know what methods you can use then? If you are working in the IPython/Jupyter
> Notebook there is an easy way to find out. If you type the name of your object
> with a full-stop then you can use tab completion (e.g. type `data.` and then press tab)
> to see a list of all methods that you can use on that object. After selecting one you
> can also add a question mark (e.g. `data.cumprod?`) and IPython will return an
> explanation of the method! This is the same as doing `help(data.cumprod)`, and shows
> the docstring of the `np.cumprod` function.

When analyzing data,
though,
we often want to look at partial statistics,
Expand Down

0 comments on commit 4f946bc

Please sign in to comment.