check xlsxwriter version code example
Example: how to install xlswriter for pandas
pip install xlsxwriter
import pandas as pd
writer = pd.ExcelWriter(<filepath>, engine='xlsxwriter')
pip install xlsxwriter
import pandas as pd
writer = pd.ExcelWriter(<filepath>, engine='xlsxwriter')