This is the Polish honorific meaning "Mister" or "Sir". As all pronouns are inflected, it may be inflected into the genitive as "Pani", which I (Having English as my first language) find somewhat confusing, as Pani is also the nominative for the feminine version of the word (Meaning Mrs or Madam).