Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13981

Summarize all possible combinations in pandas dataset

$
0
0

I have table which represents sequence of points, I need to get sum by all possible combinations. The main problem is how to do it with minimum actions because the Real table is huge

Col1col2col3col4col5col6ct
Id1id2id3id4id5id630
Id8id3id5id2id4id645

The expected result is|p1 |p2 |ct||---|---|--||Id3|id5|75||Id3|id4|75||Id3|id6|75||Id5|id6|75||Id2|id4|75||Id2|id6|75||Id4|id6|75|

I would be grateful for any help


Viewing all articles
Browse latest Browse all 13981

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>