Why do you always import seaborn as sns
and not with the letters of the name as sbn
?
Is sns
an acronym for something?
Or is it some kind of joke?
EDIT:
As cel commented, someone put this as an issue in github.
There they do not answer the question but say that it is a joke related to the original name of the library.
I was unsuccessful in trying to find that original name.
The import seaborn portion of the code tells Python to bring the Seaborn library into your current environment. The as sns portion of the code then tells Python to give Seaborn the alias of sns. This allows you to use Seaborn functions by simply typing sns.
Seaborn is a library for making statistical graphics in Python. It builds on top of matplotlib and integrates closely with pandas data structures. Seaborn helps you explore and understand your data.
To get started with seaborn, you're going to need to install it in the terminal with either pip install seaborn or conda install seaborn . Then simply include import seaborn as sns at the top of your python file.
Seaborn is a library that uses Matplotlib underneath to plot graphs. It will be used to visualize random distributions.
Samuel Norman "Sam" Seaborn is a fictional character portrayed by Rob Lowe on the television serial drama The West Wing.
So, it's a joked initialism.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With