In Markdown cells (like this one), you can write plain text or add formatting and other elements with Markdown. These include headers, bold text, italic text, hyperlinks, equations $A=\pi r^2$, inline code print('Hello world!')
, bulleted lists, and more.
Here is a bulleted list.
Here is a numbered list.
In Code cells (like the one below) you can execute snippets of code and display the output.
print('Hello world!')
Import the Seaborn library and load the example dataset of miles per gallon and other metrics for various cars:
# Seaborn library for statistical data visualization
import seaborn as sns
# Load dataset from Seaborn
mpg = sns.load_dataset('mpg')
# Display the first 5 rows
mpg.head()
Create a bubble plot of miles per gallon vs. horsepower:
sns.relplot(data=mpg, x='horsepower', y='mpg', hue='origin', size='weight',
sizes=(40, 400), alpha=0.5, palette="muted", height=5);
iris = sns.load_dataset('iris')
iris.head()
Plot pairwise relationships:
sns.pairplot(data=iris, hue='species');
Back to home