multi_categoty_field_rows=train_samples.selectExpr("explode(split({multi_categoty_field},',')) as {multi_categoty_field}".format(multi_categoty_field=multi_categoty_field)).where(F.col(multi_categoty_field)!='-1').distinct().collect()
multi_categoty_field_rows=train_samples.selectExpr("explode(split({multi_categoty_field},',')) as {multi_categoty_field}".format(multi_categoty_field=multi_categoty_field)).where(F.col(multi_categoty_field)!='-1').where(F.col(multi_categoty_field)!='').distinct().collect()