Split up nearest and nearest.loc