import os
import glob
import pandas as pd

if True:
    os.chdir("../data/rawData")
else:
    os.chdir("../data/concatedData")

"""
Take all current csv files and merge to a sigle csv for training
"""
def fileMerger():

    extension = 'csv'
    all_filenames = [i for i in glob.glob('*.{}'.format(extension))]
    combined_csv = pd.concat([pd.read_csv(f) for f in all_filenames ])
    combined_csv.to_csv( "combined_csv.csv", index=False, encoding='utf-8-sig')

