title: Take average of each column in multiple csv files using Python
body: <p>I am a beginner in Python. I have searched about my problem but could not find the exact requirement. </p>
  
  <p>I have a folder in which there are multiple files getting scored for each experimental measurement. Their names follow a trend, e.g. <code>XY0001.csv</code>, <code>XY0002.csv</code> ... <code>XY0040.csv</code>. I want to read all of these files and take the average of each column in all files, storing it in 'result.csv' in the same format.</p>