Skip to content
Discussion options

You must be logged in to vote

Dear Pak @ELITSZORD ,

Baik pak apakah sudah dicoba dengan kode berikut?

with pd.ExcelWriter("XX.xlsx", engine="openpyxl", mode='a', if_sheet_exists = 'replace') as writer:
    df_baru.to_excel(writer, sheet_name="sheet A")

Seharusnya sheet-sheet yang selain sheet A masih tetap ada pak mungkin bisa dicoba terlebih dahulu. Terima kasih

Best regards,
Team Algoritma

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ELITSZORD
Comment options

@jafarhf1
Comment options

jafarhf1 Dec 4, 2023
Collaborator

Answer selected by hwulanayu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Python Python Programming Language
2 participants