Function that creates function to interpolate data using the timestamps as X axis and log_entry as Y axis