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

Tutorials on matplotlib, numpy are outdated #114

Open
paniash opened this issue Aug 30, 2020 · 1 comment
Open

Tutorials on matplotlib, numpy are outdated #114

paniash opened this issue Aug 30, 2020 · 1 comment

Comments

@paniash
Copy link

paniash commented Aug 30, 2020

A few semantic changes have occurred over the years for both the libraries however, the brief tutorials on the website are outdated. One such example is:

from numpy import *
a = array([1,2,3,4,5,6])
print(a)

The above code semantics is outdated and should be the following instead:

import numpy as np
a = np.array([1,2,3,4,5,6])
print(a)

The outdated code might not be just limited to the aforementioned libraries. These were the only tutorials I happened to check.

I understand that this code works but it's just good practice to import numpy as np instead of from numpy import * and so on.

@paniash
Copy link
Author

paniash commented Aug 30, 2020

If it's alright, I can make a PR regarding this.

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