I want to merge some dataframe from csv files using for loop in python. But the result is empty. Why is that so? Here is my code.
result = pandas.DataFrame(columns = ['col_A', 'col_B'])
for i in range(0, 5):
#col_A is integer for numbering, col_B is float in range 0 to 1
temp = pandas.DataFrame([[0, 0.5132443], [1, 0.12436421], [2, 0.12341162]], columns = ['col_A', 'col_B'])
result.merge(temp)
print(result) #result is empty dataframe