def multiple_dfs(file_name, sheet, *args):
"""
Put multiple dataframes into one xlsx sheet
"""
row=2
writer = pd.ExcelWriter(file_name)
df = pd.DataFrame({'user': ['Bob', 'Jane', 'Alice'],
'income': [40000, 50000, 42000]})
df2 = pd.DataFrame({'amount': [100, 500, 1000],
'income': [40000, 50000, 42000]})
df3 = pd.DataFrame(['Title'])
df.to_excel(writer, sheet, startrow=row, index=False)
row += len(df) + 1
df2.to_excel(writer, sheet, startrow=row, index=False)
df3.to_excel(writer, sheet, startrow=0, startcol=0, header=None, \
index=False)
multiple_dfs('file.xlsx','Sheet1')