whimsicality

noun

1.
the trait of acting unpredictably and more from whim or caprice than from reason or judgment
Derived from:
whimsical
2.
the trait of behaving like an imp