-
-
Notifications
You must be signed in to change notification settings - Fork 776
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
02-numpy: clarify numpy.diff() part (#777)
* 02-numpy: clarify numpy.diff() part Using a variable called `npdiff` to hold an array is highly confusing, given that the function to be learned here is called {numpy,np}.diff(). Also, stress that the array returned by `diff()` is shorter by one. * 02-numpy: diff(): rename variable, streamline text Rename variable `a` -> `row_start` and add text relating that to the `data` array encountered earlier. The text part about "patient data is _longitudinal_" is redundant since that answers the question posed later regarding the usage of the `axis` keyword. It intoduces the usage of `axis`, while the following intro to diff() first uses a 1d array. * 02-numpy: diff(): Re-add introduction lines
- Loading branch information
Showing
1 changed file
with
20 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters