Nelly-Barret / BETTER-fairificator

The fairification tools for BETTER project.
https://www.better-health-project.eu/
0 stars 0 forks source link

Metadata column names in constants #81

Closed Nelly-Barret closed 4 days ago

Nelly-Barret commented 4 days ago

For now, I often do things like this:

self.metadata["JSON_values"] ...
self.metadata["name"] ....

This is not very good because:

  1. I didn't check beforehand whether the column exists in the data frame (thus it will raise an exception if it does not exist)
  2. A small typo in the column name would raise an exception, and in any case, it is always better to define such repetitive strings in constants.
Nelly-Barret commented 4 days ago

Done through https://github.com/Nelly-Barret/BETTER-fairificator/pull/82