import pandas
def data_to_excel(data,row):
length = len(data)
number = length //row
for i in range(number+1):
data[i*row:(i+1)*row].to_excel('./path.xlsx',index=False)