Why import seaborn as sns?

Question:

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?

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.

Asked By: Lucas

||

Answers:

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.

Answered By: boardrider

From the FAQ section of the seaborn documentation:

Why is seaborn imported as sns?

This is an obscure reference to the
namesake of the library, but you can also think of it as "seaborn name
space".

Answered By: cottontail
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.