Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No.9's solution is wrong in 100_Numpy_exercises_with_hints_with_solutions.md file #101

Open
kamigusa opened this issue Feb 16, 2020 · 1 comment · May be fixed by #106
Open

No.9's solution is wrong in 100_Numpy_exercises_with_hints_with_solutions.md file #101

kamigusa opened this issue Feb 16, 2020 · 1 comment · May be fixed by #106

Comments

@kamigusa
Copy link

No.9's solution may be miscopied from No.10's solution.
I suggest the solution should be revised from Before to After.

9. Create a 3x3 matrix with values ranging from 0 to 8 (★☆☆)

hint: reshape

Before

nz = np.nonzero([1,2,0,0,4,0])
print(nz)

After

np.arange(0,9).reshape(3,3)

410063005 added a commit to 410063005/numpy-100 that referenced this issue Feb 17, 2020
@rougier
Copy link
Owner

rougier commented Feb 18, 2020

Thanks, there is pending PR (#98) that will fix the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants