Re: save data from multiple txt files

2022-03-26 Thread Cameron Simpson
On 26Mar2022 15:47, alberto wrote: >Hi to everyone, >I would save data from multiple files in one using pandas. >below my script Well, it looks like you're doing the right thing. You've got this: results = pd.DataFrame() for counter, current_file in enumerate(glob.glob("results_*.log")):

save data from multiple txt files

2022-03-26 Thread alberto
Hi to everyone, I would save data from multiple files in one using pandas. below my script # Read results GCMG LAMMPS import pandas as pd import os import glob path = r"C:\Users\Documenti\Pyton\plot\results_CH4_180K\METHANE_180K_LJ_2.5-35.0_bar" os.chdir(path) results = pd.DataFrame() for