I have a csv that looks like this:
someFile.csv
Header1 Header2 Header3
aa aaa a
bbbb bbbbbb aa
I want to calculate the average string length in each column and create a csv of the results. This is what it would look like in the example:
results.csv
Header1 Header2 Header3
3 4.5 1.5
I've been trying to use the csv library in Python but I'm not having success. Is there a simple way to accomplish this?