Timeline for Count the max number of consecutive 1 and 0 in Pandas Dataframe
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 13, 2020 at 12:45 | comment | added | Itamar Mushkin | Iterating over dataframes is slow and usually not advised; it's better to look for an alternative. | |
Jul 13, 2020 at 12:27 | comment | added | Myles Collier | Thanks this is almost what I need, I want the max consec columns to be split by either 0 or 1. So that if I have 0,1,1,1,0,1,1, the consecutive will look like 0,1,2,3,0,1,2 and then max consecutive will look like 0,3,0,2 or just 3,2 | |
Jul 13, 2020 at 12:03 | history | answered | Anirban Saha | CC BY-SA 4.0 |