I am wondering if there is a way we can produce a graph like this
using survival data. For example suppose we have this dataframe
d = {'time_in_weeks': [0, 10, 20, 30, 50, 170], 'failure_status': [0, 0, 0, 0, 1, 1]}
df = pd.DataFrame(data=d)
How would we create the latter graph?