Basically the title. I want to plot time of day over several days, versus whether a machine is "on" or "off". I want to convert the "on" and "off" terms into 0 or 1.