It's often useful to avoid importing matplotlib unless it's especially needed, since it can cause problems on some clusters and things like that. This moves the matplotlib and seaborn imports inside the function that uses them, so they won't be imported unless called.
It's often useful to avoid importing matplotlib unless it's especially needed, since it can cause problems on some clusters and things like that. This moves the matplotlib and seaborn imports inside the function that uses them, so they won't be imported unless called.