score:-1

you can use:

your_dataframe.to_xml('file_name_to_save_to.xml', xml_declaration = True)

Related Query

More Query from same tag