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?
Just curious if you weren't using an alias but wanted to do a nested import without the parent namespace would you do import scipy.stats as stats or from scipy import stats? Just thinking out loud here...
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?