To read CSV or excel files, I generally use pandas library in python every time. Also, I sometimes prefer it for visualazation. Once I read csv file in python, So with the help of pandas dataframe, performing a statistical analysis is very easy, lots of built-in functions available to use. A single line of program can help you.
There is a method for everything and an even efficient way to do what you already do in python! this is not just adding functionality but improving the functionality that you already have
PS
Pablo S.
Physician | Healthcare Strategy Consultant | Health Scientist