catalyst-cooperative / pudl

The Public Utility Data Liberation Project provides analysis-ready energy system data to climate advocates, researchers, policymakers, and journalists.
https://catalyst.coop/pudl
MIT License
471 stars 108 forks source link

Output metadata to accompany Datasette based on new Metadata structure #1453

Closed katie-lamb closed 2 years ago

katie-lamb commented 2 years ago

We can generate table and column level annotations for the DB, which makes Datasette more useful and interesting.

Check out metadata.yml in devtools/datasette and Datasette documentation on doing this here

We are at the point when we can add column and table level metadata for the whole DB. See this issue as well.

To Do's:

Features to add with metadata

zaneselvans commented 2 years ago

Integrating units might be hard with nothing but the column names to indicate the units. We could also add another attribute to the Field data model that describes the units of the field if it's applicable. It would be great if that information could be integrated into the DB schema itself somehow too. But even just getting the metadata we've already got compiled exported and integrated with Datasette will be a big improvement!