Relative Content

Tag Archive for pythonpandassignalssignal-processing

Comparing Multiple Values Across Columns of Pandas Dataframe Based on Column Names

I have a pandas dataframe with a number of thresholds and values associated with epochs. I want to compare the all of the thresholds with their associated values simultaneously to remove rows as needed. I will be doing this many times and the letter designations can change each time I create this dataframe, but there will always be a 1:1 association for threshold and value. The number of thresholds and values can change each time the dataframe is created though. The end goal is to get all of the epochs where all of the values are below their respective thresholds. The sample below does not have any that fit this requirement, but I’ve included it so people have a visual for what I’m working with. For now, how would I do this comparison in an efficient way?