The prefix “pan-” means “all.” Similarly, pansexuality means that you’re attracted to people of all genders.
This includes people who don’t identify with any gender (agender).
Many pansexual people describe themselves as being attracted to people based on personality, not gender.
Note that pansexual doesn’t mean you’re attracted to all people.
For example, heterosexual men aren’t attracted to all women, and vice versa.
It simply means that they find themselves attracted to people of all sorts of gender categories.