I use this in Pandas all the time. (Just got done teaching a class about it.) Very useful once you grok the syntax.
Smart folks like duckdb realize the utility (and the pain of doing this in normal SQL) and have added PIVOT to their implementation. Super useful.