Skip to content

archaeo_super_prompt.dataset.normalization.intervention_date.period_to_dd

source module archaeo_super_prompt.dataset.normalization.intervention_date.period_to_dd

Fix functions for transforming a period of intervention into a start date and a duration.

Functions

  • fix_start_and_duration Fix the intervention date and duration when it is sure that the whole intervention period has been written.

source fix_start_and_duration(df: pd.DataFrame)

Fix the intervention date and duration when it is sure that the whole intervention period has been written.