'Transposing multiple and dynamic column of different shape with pyspark

I have this data with multiple similar columns. This column can be larger such that we can have sc.4 ,sc.6 , sc.10, sc.16 i.e dynamic

I want to be able to select all this similar column no matter their shapes they come with and transpose them as row for a new column using pyspark



Solution 1:[1]

You're better off using a JS smart button (code demo).

Then in createOrder you can just replace the price with localStorage.getItem('TotalPrice')

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Preston PHX