Guided Project:Visualizing The gender Gap in College

    if sp % 3 == 0:
        ax.plot(women_degrees['Year'], women_degrees[stem_cats[int((sp)/3)]], c=cb_dark_blue, label='Women', linewidth=3)
        ax.plot(women_degrees['Year'], 100-women_degrees[stem_cats[int((sp)/3)]], c=cb_orange, label='Men', linewidth=3)
        ax.set_title(stem_cats[int(sp/3)])
    
    elif sp %3 == 1 and sp <= 14:
        ax.plot(women_degrees['Year'], women_degrees[lib_arts_cats[int((sp-1)/3)]], c=cb_dark_blue, label='Women', linewidth=3)
        ax.plot(women_degrees['Year'], 100-women_degrees[lib_arts_cats[int((sp-1)/3)]], c=cb_orange, label='Men', linewidth=3)
        ax.set_title(lib_arts_cats[int((sp-1)/3)])
    
    elif sp % 3 == 2:
        ax.plot(women_degrees['Year'], women_degrees[other_cats[int((sp-2)/3)]], c=cb_dark_blue, label='Women', linewidth=3)
        ax.plot(women_degrees['Year'], 100-women_degrees[other_cats[int((sp-2)/3)]], c=cb_orange, label='Men', linewidth=3)
        ax.set_title(other_cats[int((sp-1)/3)])```


I expected the the row 6th in 2nd column to be blank but instead it showed the axis with some error.