Skip to content

Commit 9a6a0b8

Browse files
authored
Merge pull request #971 from ndporter/patch-2
Add explicit parameters for numpy.delete
2 parents 27315f7 + 751f43b commit 9a6a0b8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

_episodes/02-numpy.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,10 +656,11 @@ which is the average inflammation per patient across all days.
656656
> > ## Solution
657657
> >
658658
> > An alternative way to achieve the same result is to use Numpy's
659-
> > delete function to remove the second column of A.
659+
> > delete function to remove the second column of A. If you're not
660+
> > sure what the parameters of numpy.delete mean, use the help files.
660661
> >
661662
> > ~~~
662-
> > D = numpy.delete(A, 1, 1)
663+
> > D = numpy.delete(arr=A, obj=1, axis=1)
663664
> > print('D = ')
664665
> > print(D)
665666
> > ~~~

0 commit comments

Comments
 (0)