Cocktail parrot
Whistling is sometimes also called singing, and it's generally done by males looking to find a mate. Your bird might be whistling because they're feeling amorous, or they may have simply caught a glimpse of themselves in the mirror and liked what they saw