moving archive analysis to bin/ script and using a pandas.DataFrame