Given a DataFrame having timestamp (ts), I\'d like to these by the hour (downsample). Values that were previously indexed by ts should now be divided into ratios based on th