import numpy as np
import pandas as pd
import glob
import csv
import sys
import os

in_dir = '/home/jporcaro/cpol_analysis/cpol_out_allyears1/'
allFiles = glob.glob(in_dir + "*.csv")
df = pd.DataFrame()
mylist = []
out_dir = '/home/jporcaro/cpol_analysis/cpol_out_allyears1_df/'

for i in allFiles:
    try:
        df = pd.read_csv(i, index_col=None, header=0)
        mylist.append(df)
    except:
        continue

fn = 'allyears_df.csv'
frame = pd.concat(mylist)
frame.to_csv(fn)
os.path.join(out_dir, fn)
print('task complete')


b762d43e6cfa24749511f0c7766cc21e910517eb
<mask token>

<mask token>
for i in allFiles:
    try:
        df = pd.read_csv(i, index_col=None, header=0)
        mylist.append(df)
    except:
        continue
<mask token>
frame.to_csv(fn)
os.path.join(out_dir, fn)
print('task complete')

<mask token>
in_dir = '/home/jporcaro/cpol_analysis/cpol_out_allyears1/'
allFiles = glob.glob(in_dir + '*.csv')
df = pd.DataFrame()
mylist = []
out_dir = '/home/jporcaro/cpol_analysis/cpol_out_allyears1_df/'
for i in allFiles:
    try:
        df = pd.read_csv(i, index_col=None, header=0)
        mylist.append(df)
    except:
        continue
fn = 'allyears_df.csv'
frame = pd.concat(mylist)
frame.to_csv(fn)
os.path.join(out_dir, fn)
print('task complete')

import numpy as np
import pandas as pd
import glob
import csv
import sys
import os
in_dir = '/home/jporcaro/cpol_analysis/cpol_out_allyears1/'
allFiles = glob.glob(in_dir + '*.csv')
df = pd.DataFrame()
mylist = []
out_dir = '/home/jporcaro/cpol_analysis/cpol_out_allyears1_df/'
for i in allFiles:
    try:
        df = pd.read_csv(i, index_col=None, header=0)
        mylist.append(df)
    except:
        continue
fn = 'allyears_df.csv'
frame = pd.concat(mylist)
frame.to_csv(fn)
os.path.join(out_dir, fn)
print('task complete')

import numpy as np
import pandas as pd
import glob
import csv
import sys
import os

in_dir = '/home/jporcaro/cpol_analysis/cpol_out_allyears1/'
allFiles = glob.glob(in_dir + "*.csv")
df = pd.DataFrame()
mylist = []
out_dir = '/home/jporcaro/cpol_analysis/cpol_out_allyears1_df/'

for i in allFiles:
    try:
        df = pd.read_csv(i, index_col=None, header=0)
        mylist.append(df)
    except:
        continue

fn = 'allyears_df.csv'
frame = pd.concat(mylist)
frame.to_csv(fn)
os.path.join(out_dir, fn)
print('task complete')

