text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

star_data = pd.read_csv('../input/star-dataset/6 class csv.csv')

star_data.isnull().sum()

sns.catplot(x='Spectral Class', y='Absolute magnitude(Mv)', data=star_data, hue='Star type Decoded', order=['O', 'B', 'A', 'F', 'G', 'K', 'M'], height=9)
plt.gca().invert_yaxis()