I would like to turn a Series of frequencies that I initialised in a loop over csv-files like so
setfreq_df = pd.concat([setfreq_df, EIS_csv['SetFreq'].astype(float)], ignore_index = True)
into a single boolean value or a boolean list. I need to check whether the data is corrupted, right now specifically whether all the frequencies are below 7000. I tried this in the following way:
bool_list = [(y < 7000) for y in setfreq_df]
which produces the output
[True]
I don't know how to interpret this result as I was expecting a list as long as the column of the DataFrame. Also I tried this with 6000 and it returned the same result even though I know there are frequencies of 6,5 kHz in the csv.
What went wrong here and how could I get it done? Thank you