2
私はパンダで、以下のデータを持って、私は出力があったことを驚いた:D + 私は誰かがパンダがカテゴリデータを命じた - 初級
df = pd.DataFrame(['A+','A','A-','B+','B','B-','C+','C','C-','D+','D'],
index = ['excellent','excellent','excellent','good','good','good','ok','ok','ok','poor','poor'])
df.rename (columns={0:'Grades'},inplace=True)
grades = df['Grades'].astype('category', categories = ['D','D+', 'C-', 'C','C+','B-','B','B+','A-','A','A+'],ordered=True)
print(max(grades),min(grades))