julia-mpsge / MPSGE.jl

MPSGE for Julia
MIT License
14 stars 2 forks source link

Tidy data and support for Visualization and other output presentation #139

Open EliLazarus opened 11 months ago

mitchphillipson commented 3 months ago

Yes. Best solution might be to have a method to convert indexed sectors to DataFrames. I have this on a global scale with generate_report, but a micro scale would be nice too. Column for variable name, index columns, and value.

So if Y is a variable with domain A, B we get a DataFrame with four columns, :variable_name, :A, :B, :value.

In fact we could be clever here and set the axis names on creation of an indexed variable. And IndexedVariable is just a DenseAxisArray which space for axis names. I was prototyping something earlier and will circle back to this.

EliLazarus commented 3 months ago

I don't know how far we want to take this as an issue, but there's probably a list of intersting, useful and slightly complicated output and report methods that might be nice to offer. Probably for some simple ones like a bar chart or scatter plot of results, better to just show in tutorial.