在熊猫数据框列中检测和测量模式

时间:2020-05-07 13:42:37

标签: python pandas dataframe

我将模式定义为具有不同值的连续行(例如:abc def ghi)

我希望能够检测到abc def ghi这样的模式,并计算构成该模式的行数。

DATA PATTERN_COUNT

abc     3
def
ghi     2
abc
ghi   
klm

0 个答案:

没有答案