in an apartment아파트 means “apartment,” and 에서 marks the place where an action occurs. In these examples, it indicates the apartment where someone lives or where something happened.
KO: 저는 아파트에서 친구와 영화를 봤어요.
EN: I watched a movie with my friend in the apartment.