Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

histogram seaborn python

# Import necessary libraries
import numpy as np
import pandas as pd
import seaborn as sns
 
# Load dataset
tips = sns.load_dataset("tips")
 
# Plot histogram
sns.histplot(data = tips, x = "size", stat = "probability", discrete = True)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #histogram #seaborn #python
ADD COMMENT
Topic
Name
2+5 =