qa.qa_wdrs_result(wdrs_res_output: str)
QA wdrs_result
Usage
To be used in a .with_columns() statement. This function will flag rows where there are unexpected test results.
Parameters
wdrs_res_output : str
-
wdrs result output from transformation functions
Examples
from wadoh_subtyping import qa
from wadoh_raccoon.utils import helpers
import polars as pl
wdrs = pl.DataFrame({
"wdrs_res_output": [
"G_FLU_ND",
"G_FLU_A_D",
"Random Value",
None
]
})
df = (
wdrs
.with_columns(
qa.qa_wdrs_result(wdrs_res_output='wdrs_res_output')
)
)
helpers.gt_style(df_inp=df)
| 0 |
G_FLU_ND |
false |
| 1 |
G_FLU_A_D |
false |
| 2 |
Random Value |
true |
| 3 |
None |
true |