Fastest way to concatenate multiple files column wise - Python
问题 What is the fastest method to concatenate multiple files column wise (within Python)? Assume that I have two files with 1,000,000,000 lines and ~200 UTF8 characters per line. Method 1: Cheating with paste I could concatenate the two files under a linux system by using paste in shell and I could cheat using os.system , i.e.: def concat_files_cheat(file_path, file1, file2, output_path, output): file1 = os.path.join(file_path, file1) file2 = os.path.join(file_path, file2) output = os.path.join