Given below is some part of data, I want to export the data from output box in Jupyter Notebook to the excel file. The data is quite huge like 10k lines.

17:38:00
17:38:01
17:38:02
17:38:03
17:38:04
.
.
.
Following is my code:-

```
enter code here
import pandas as pd
import numpy as np
load_var=pd.read_csv(r'path')

# Select the dataframe
col_var=load_var['End Seconds']

# Converting the dataframe to array

a=col_var.values.tolist()

# define the function for time conversion
def convert(seconds): 
seconds = seconds % (24 * 3600) 
hour = seconds // 3600
seconds %= 3600
minutes = seconds // 60
seconds %= 60

return "%d:%02d:%02d" % (hour, minutes, seconds) 

for n in a:
print(convert(n))

```

1)Please suggest the addition to be made in the code.

Thank you.