Created
November 23, 2018 07:13
-
-
Save korkridake/67d436d8f3dde6e646c02e70aff58568 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --------------------------------------------------------------- | |
# basic libraries | |
# --------------------------------------------------------------- | |
import pandas as pd | |
import numpy as np | |
from glob import glob | |
import warnings | |
warnings.filterwarnings('ignore') | |
# --------------------------------------------------------------- | |
# read the files | |
# --------------------------------------------------------------- | |
mylst = sorted(glob('[File Path]')) | |
mydf = pd.concat((pd.read_csv(f, delimiter='|', thousands = ",") for f in mylst), ignore_index=True) | |
mydf.shape | |
mydf.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment