Generate a list of combinations of three numbers from a given array in Python.
[1, 2, 3, 4, 5]
combinations = []
for i in range(len(arr)):
    for j in range(i+1, len(arr)):
        for k in range(j+1, len(arr)):
            combinations.append([arr[i], arr[j], arr[k]])