The exact meaning of "니" is "You". "니?" in ending is used for informal question instead of "습니까?, 됩니까?, 어요?"
For instance,
(너) 어제 학교 갔니? (between friends or senior to junior)
(당신) 어제 학교 가셨어요? (formal or junior to senior)
니 어제 학교 갔나?(between friends or senior to junior with southeastern Korean dialect)
It's the same meaning of "Did you go to the school yesterday?".