Comment Comment by hackarama Python's pandas library essentially does this when creating a DataFrame object from a CSV file. Of course, it's not always correct, but may be a starting point for your use case. parent hackarama 4 years ago