Hacker News new | ask | show | jobs
by CSSer 1272 days ago
Very cool article! Thanks for sharing. Is numpy just global in Python now? I see it everywhere, and I eventually sound it out. Yet I never fail to have a few moments where I go, “Wait, what is ‘np’? Oh, yeah… Numpy.” And I always feel like just listing it as an import in the snippet would’ve solved it.
1 comments

Just a “standard” convention. I’ve been doing a bunch of analysis work lately and almost all of the scripts start with something like:

    import numpy as np
    import pandas as pd
    import seaborn as sns 
    import sympy as sp