Player is the main subject of the stat, the one who performs the main action in the stat settings. Villain is any other participant in the action.
For example in 3bet stat, a Villain is the first raiser and Player is the one who 3bets. This applies not only to Range Research, but to all stats in Hand2Note.