Why is seaborn module imported by the name sns? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is seaborn module imported by the name sns?

27th Mar 2020, 7:14 AM
Punyasloka Sahoo
Punyasloka Sahoo - avatar
2 Answers
0
You can import it with any alias, but sns resembles most and lot of people use sns, thats why we use sns.
27th Mar 2020, 10:20 AM
Arvind Singh Rawat
Arvind Singh Rawat - avatar
0
That's the question, numpy is mostly imported as np, which makes sense since np stands for num py, matplotlib.pyplot is imported as plt, even that makes sense, I don't get why would seaborn be imported mostly as sns, like where does the second s come from? Shouldn't it be like sbn or something like that?
29th Mar 2020, 7:32 AM
Punyasloka Sahoo
Punyasloka Sahoo - avatar