I have multiple dataframes in a list CGdfs.
CGdfs = [CGdf_2002, CGdf_2003, CGdf_2004, CGdf_2005, CGdf_2006, CGdf_2007, CGdf_2008, CGdf_2009, CGdf_2010, CGdf_2011, CGdf_2012, CGdf_2013, CGdf_2014, CGdf_2015, CGdf_2016, CGdf_2017, CGdf_2018]
I want to drop a column named 'Plot' from all these dataframes using a loop. How do I do this?
I have tried the below, this does not work
for df in CGdfs:
df = df.drop('Plot', axis =1)