Skip to content

Commit

Permalink
add extra data for reviewers
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwalkerepi committed Apr 3, 2024
1 parent 1ba4882 commit aa9026b
Show file tree
Hide file tree
Showing 5 changed files with 388 additions and 58 deletions.
6 changes: 4 additions & 2 deletions lib/outliers.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,14 @@ def filtered_sparkline(df, name, measure):
axis=1)

#create output table
out_table = filtered[['is.tfirst.big','is.intlev.levdprop']]
out_table = filtered[['is.tfirst.big','is.intlev.levdprop', 'is.intlev.finallev', 'is.intlev.levd']]
out_table = out_table.join(entity_names['link'])
out_table = out_table.join(plot_series)
out_table = out_table.rename(columns={
"is.tfirst.big": "Month when change detected",
"is.intlev.levdprop": "Measured proportional change"
"is.intlev.levdprop": "Measured proportional change",
"is.intlev.finallev": "Final level",
"is.intlev.levd": "Measured change"
})

return out_table.set_index('link'), all_changes
Expand Down
Loading

0 comments on commit aa9026b

Please sign in to comment.