MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/4nd3lc/scientific_python_cheat_sheet/d44y489/?context=3
r/Python • u/Link2mypast • Jun 09 '16
62 comments sorted by
View all comments
6
This is kind of silly, and there's no reason to prefer one way or the other, but does anyone else do from matplotlib import pyplot as plt rather than import matplotlib.pyplot as plt?
from matplotlib import pyplot as plt
import matplotlib.pyplot as plt
1 u/TheBlackCat13 Jun 11 '16 I find it harder to mentally parse your version. It is longer and has an additional unneeded statement that makes it more complex.
1
I find it harder to mentally parse your version. It is longer and has an additional unneeded statement that makes it more complex.
6
u/hharison Jun 10 '16
This is kind of silly, and there's no reason to prefer one way or the other, but does anyone else do
from matplotlib import pyplot as pltrather thanimport matplotlib.pyplot as plt?