I have a very simple for loop :
## Keep or Drop Rows from Ad Servers
dataframes = [atlas_df, flashtalking_df, innovid_df, ias_viewability_df, ias_fraud_df]
for df in dataframes:
df = df[df['Placement Name'].str.contains("»")]
when I run the for loop though, nothing filters.
However, if I write it down manually as:
ias_fraud_df = ias_fraud_df[ias_fraud_df['Placement Name'].str.contains("»")]
The filter works.
Any ideas on what I am missing?
ias_fraud_dfand doias_fraud_df.count()the number of lines is the same. If I apply it manually, then the number of lines changes to the correct number.