transform.wdrs_result_summary(wdrs_res_col: str)
wdrs result summary
Usage
to be used in a .with_columns() statement
Parameters
wdrs_res_col : str
-
wdrs result column
Examples
import wadoh_subtyping.transform as tf
from wadoh_raccoon.utils import helpers
import polars as pl
df = pl.DataFrame({
"TestResult": [
"Not Detected {52}",
"Detected {51}",
"Test {53}"
]
})
result = (
df
.with_columns(
WDRS_RESULT_SUMMARY=tf.wdrs_result_summary(wdrs_res_col='TestResult')
)
)
helpers.gt_style(df_inp=result)
| 0 |
Not Detected {52} |
G_NEGATIVE |
| 1 |
Detected {51} |
G_POSITIVE |
| 2 |
Test {53} |
None |