capriciousness

US /kəˈprɪʃ.əs.nəs/
UK /kəˈprɪʃ.əs.nəs/
1.

capricho

the quality of changing mood or behavior suddenly and unexpectedly:

:
Her capriciousness made her difficult to work with.