How to create all sequences from data with a specific pattern

后端 未结 0 1797
清酒与你
清酒与你 2020-12-10 20:52

I have a dataframe or list of tuples, whatever, with boolean column. I need to find all sequences with length 4 like [1,0,1,0] and [0,1,0,1]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题