How do i filter using a list created from filtered dataframe?
Changed datatype to 'integer' between step 1 and 2.
A question regarding filtering using a list of values. I want to do the following:

filter a dataframe based on certain criteria
create a list of (one column, containing ID's) of this dataframe
next i want to exclude this list from another dataframe.

all individual steps are working using the following code:
df3 = df2.loc[df2['value']  < parameter] (1)
my_list = df3['ID'].tolist() (2)
final_df = df[~df['column'].isin(my_list)] (3)
yet somehow filtering the frame using the first step results in the final step NOT working (so not filtering anything). When i remove the first step it again works like a charm. Does anybody know what i am doing wrong?
kind regards,
Alex