I am new in python and pandas. I have to read few csv files which have same columns and created a resultant dataFrame(which have all the rows from every csv files). I tried it but when i print dataframe, it's print Empty DataFrame
Columns: [] Index: []
code is:
def readCSV(dir):
list = getFilesInDir(dir) # my function which returns list of files.
dataframe = pandas.DataFrame()
for name in list:
df = pandas.read_csv(name)
dataframe.append(df)
print(dataframe)