In [1]:
import os as os
In [2]:
os.getcwd()
Out[2]:
In [3]:
os.chdir('C:\\Users\\Dell\\Downloads\\mortDefault')
In [4]:
os.listdir()
Out[4]:
In [5]:
import pandas as pd
In [6]:
filelist=os.listdir()
In [7]:
mortdefault = [pd.read_csv(i) for i in filelist]
In [11]:
type(mortdefault)
Out[11]:
In [27]:
mort11=pd.concat(mortdefault,ignore_index=True)
In [28]:
mort11.info()
In [ ]: