I have N dataframes ranging from L1...Ln.
I would like to modify them to keep rows pertaining to a certain condition.
I ran the following loop:
for df in [L1,...,Ln]:
df=df.ix[df['Sector']=='Services']
However, when I call out each dataframe, I find it has not been replaced accordingly. How do I modify a set of dataframes using a loop?
I am using Python 2.7.