Exceptions to the trend across a period group 2
Boron has 2s2 2p1 whereas Li has 2s1 and Be has 2s2, Therefore boron has electron in the 2p sublevel which has a higher energy further away from nucleus therefore less energy required to remove an outer electron from boron
Oxygen has a drop because compared to N, O2 has a pair of electrons with opposite spins (in p orbital), meaning they repel therefore it takes less energy to remove an outer electron from O2