doc clean up
@@ -150,8 +150,8 @@ time (months, days, ...) observed deaths censored
from lifelines.utils import survival_events_from_table
T, E = survival_events_from_table(df, observed_deaths_col='observed deaths', censored_col='censored')
- print(T # np.array([0,0,0,0,0,0,0,1,2,2, ...]))
- print(E # np.array([1,1,1,1,1,1,1,0,1,1, ...]))
+ print(T) # np.array([0,0,0,0,0,0,0,1,2,2, ...])
+ print(E) # np.array([1,1,1,1,1,1,1,0,1,1, ...])
Alternatively, perhaps you are interested in viewing the survival table given some durations and censorship vectors.
