How to convert .py to .exe with plotly graph?

Actually I’ve made a graph using plotly but the user want to show only graph using like .exe file, So how i can convert into .py to .exe ? Hereby i am sharing codes and .png file…

Uploading: Screenshot (21).png…
import pandas as pd
import as px

df = pd.read_csv(“C:/Users/Singh/Downloads/REPORT_1.csv”)
fig = px.sunburst(df, path=[‘SUPERVIOSER NAME’, ‘VILLAGE NAME’, ‘TOTAL AREA’], values=‘VILLAGE CODE’,height=3000,title=“Cane Survey Report”)

hi @Abhay
welcome to the community. This geeksforgeeks article on converting python script to exe file worked for me.

I used Python 3.8, and I converted this example Plotly Bar chart code in the docs into an exe file (when using python 3.10 I got an error):

import as px
data_canada ="country == 'Canada'")
fig =, x='year', y='pop')