lifelines is a library for survival analysis in Python. Originally developed for birth and death events, it has evolved into a complete survival analysis library to predict any duration of time. Beyond medical use cases (such as answering, How long does this population live for?), we've used it in retail and manufacturing to answer questions like How long users are subscribed to a service? or When should we do the next preventive maintenance?