I need to create a new column in my dataframe that stores the processed values. So I used polars apply function to do some processing of dicoms and then return value. But this apply function by default takes the entire column as polars Series and it doesn't process row by row.
df = df.with_columns(
[
pl.apply(
exprs=["Filename", "Dicom_Tag", "Dicom_Tag_Corrected", "Name"],
f=apply_corrections_polars,
).alias("dicom_tag_value_corrected"),
]
)