Skip to content

Commit

Permalink
Update Iterate_all_directories.py
Browse files Browse the repository at this point in the history
  • Loading branch information
RubensZimbres authored Oct 5, 2022
1 parent 9f137a0 commit b67f6fe
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Iterate_all_directories.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,24 @@
for line in open(arquivo):
jsons.append(json.loads(line))
pd.DataFrame.from_records(jsons).head()


--------------------------------------------


import pandas as pd
import os
import numpy as np
rootdir='/home/user/Downloads/other_models/prediction'

df=pd.read_csv(rootdir+'/'+sorted(os.listdir(rootdir))[1],sep=',',header=0)

df0=[]

for files in sorted(os.listdir(rootdir)):
df0.append(pd.read_csv(rootdir+'/'+files,sep=',',header=0))
print(files)

df0[0]

result_prev=pd.concat(df0,axis=0)

0 comments on commit b67f6fe

Please sign in to comment.