removing print statements and adding EI CNAE truncation and fixing groupby that uses substr when not needed