Gabi Santoyo
data analyst
is to calculate the difference for 2 excel workbooks where data may change on a month to month or year to year basis. Especially if the format in excel will be consistent. I decided to finally challenge myself and attempt to recreate the script from scratch to automate this task much faster!openpyxl
& xlsxwriter
.average retail price
of Apples from 2013 and 2020. Then in Python, imported the datasets into dataframes, copied relevant data over into a new workbook and created a new column calculating the difference in price between the years.'apples_2013.xlsx'
and 'apples_2020.xlsx'
with the names of your Excel files:Python
, Excel
apples_2013.xlsx
, apples_2020.xlsx
, USDA Food Price OutlookApple Price Index.xlsx