PySparkDataframe column header concat based on non zero values <pre><code>+------+-----+------+-------------------+--------------------+----------+ |Manfr| prodid|region| absprice33| absprice27|absprice29| +-----+----- +------+-------------------+------------------ +----------+ | abc| 47 | US|-0.6015412046017017|1.2074692228904986| 0 | +------+----- +------+-------------------+------------------+----------+ | bcd| 47 | US|-0.6015412046017017| 0 |1.204986 | +------+----- +------+-------------------+------------------+----------+ </code></pre> <p>above is the input i want output like below</p> <pre><code>Manfr| prodid|region| new_col abc| 47 | US| absprice33, absprice27 bcd| 47 | US| absprice33, absprice29 </code></pre> <p>I want to contact the column names, if the values are not equal to 0. Please note rows are unique/no dups for Manfr| prodid|region combination.</p> <p>Can you help using pyspark dataframe</p>