Is there any simple method to round off odd integers to the next even integers? I want to round off the odd integers to the closest even integers. I have the dataframe as given below:
data = [511.67, 277.63, 732.41, 1028.16]
df = pd.DataFrame(data, columns=['Onset'])
This is what the output should be: 510, 276, 732, 1028