make a class to handle analysis.  Change keys to datetimes and records to floats