Split based on median

Hello,
I would like to divide my data based on the median into high risk and low risk data based on total_perTMB . I would like them to be in one column matched on the base tumour_sample_barcode
total