I have a data as shown below,
x = [1,2,3,4,5]
y = [6,7,8,9,0]
z = [11,12,12,56,6]
Now, I want to export this data to an excel file. For that I have used the following code
import numpy as np
import pandas as pd
data = pd.DataFrame({"x":[1,2,3,4,5],
" ":np.nan,
"y":[6,7,8,9,0],
" ":np.nan,
"z":[11,12,12,56,6]})
data.to_excel('test_file.xlsx', index= False)
Here I used the np.nan to create an empty column.
The new excel file is as shown
but, I want to show the data as shown in this picture

Please help. Thank you.
