If you are changing the frequency of your time index, you might want to change the name as well, for example so that you get an appropriate name when plotting.
Proposed Solution
Enable the option in the adjust-frequency function
Added a new rename-index function that handles this. Behavior is different depending on whether we've autodetected the index. If we have autodetected the index we need to update the validatable metadata otherwise it'll be invalid.
Because I added another index-related api function, I renamed api/index_by.clj to api/indexing.clj and added the rename-index fn there.
Fix a problem with validatable/valid?. If add-validatable had identified a column that didn't actually exist in the dataset, this function returned true.
Goal / Problem
If you are changing the frequency of your time index, you might want to change the name as well, for example so that you get an appropriate name when plotting.
Proposed Solution
adjust-frequency
functionrename-index
function that handles this. Behavior is different depending on whether we've autodetected the index. If we have autodetected the index we need to update the validatable metadata otherwise it'll be invalid.api/index_by.clj
toapi/indexing.clj
and added therename-index
fn there.validatable/valid?
. Ifadd-validatable
had identified a column that didn't actually exist in the dataset, this function returned true.Work remaining
Open Questions