![data_preparation.png](KMHPj9iuBP36)

This data processing flow focuses on turning maintenance operations events into periods, to be able to analyze why some equipments last longer than others in between two maintenance operations.

This flow zone generates two periods datasets. The first output, "periods_by_equipment," provides insights into the operational periods of equipment, including the start and end times, uptime in days, and whether the events were observed. The second output, "periods_by_equipment_and_operation," extends this analysis by also considering the type of maintenance operation performed. Both outputs filter out periods with zero or negative uptime, ensuring the data is relevant and accurate for further analysis.