here its just a simple looping structure for performing inbuilt function calls
for distinct_val in distinct_vals: gap_col_df = p_DF.where(col(&qu