# importing the required library
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
 
# read a titanic.csv file
# from seaborn library
df = sns.load_dataset('Safahaat')
 
 
# who v/s fare barplot
sns.barplot(x = 'who',
            y = 'fare',
            hue = 'class',
            data = df,
            estimator = np.median,
            palette = "Blues",
            ci = 0)
 
# Show the plot
plt.show()
