Plugin to change pivot table?

is it possible to write a plugin to change pivot table?
like this question:The CSV/XLSX download for a pivot table should be pivoted · Issue #2473 · metabase/metabase · GitHub , can we write a plugin to solve this?

What changes do you need to do ?

the exporting part.
like this issue: The CSV/XLSX download for a pivot table should be pivoted · Issue #2473 · metabase/metabase · GitHub
download file should be pivot too.

We accept pull requests