147

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.

0

2 Answers 2

173

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.

0
6

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".

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.