Should allow to customized label names when plotting ECDF:
# Import load_circuit_breaker function from relife.dataset
from relife import *
from relife.datasets import load_circuit_breaker
# Assign time, event variables from dataset
time, event = load_circuit_breaker().astuple()[:-1]
# Get only time values for observed event
time1 = time[event==1]
# Fit ECDF estimator to time1
ecdf = ECDF().fit(time1)
# Plot ECDF estimator of F and 1-F
ecdf.plot(label='custom_label')
Should allow to customized label names when plotting ECDF:
returns error: TypeError: plot() got multiple values for keyword argument 'label'