text_plain_output_1.png
from sklearn.preprocessing import LabelEncoder, StandardScaler

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

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

star_data.isnull().sum()

le_specClass = LabelEncoder()
star_data['SpecClassEnc'] = le_specClass.fit_transform(star_data['Spectral Class'])
print('Encoded Spectral Classes: ' + str(le_specClass.classes_))