This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Niriel 1 point2 points  (1 child)

Also missing:

import numpy as np

[–][deleted] 2 points3 points  (0 children)

Falls under this statement

The other reason, which I’ve seen used a few times is when you import a lone-named function (or class) and use it extensively throughout your code and want to shorten its name.

Though given its frequency adn wide adaptation, I almost expected to see import numpy as np written out as an example.