Pandas ExcelWriter property supported_extensions in Python
The Pandas ExcelWriter property supported_extensions used to determine the extensions that writer engine supports.
Syntax
 1 ExcelWriter.supported_extensions
supported_extensions property
 1 import pandas as pd
 2 
 3 # executed with engine - openpyxl
 4 ew = pd.ExcelWriter('excel.xlsx')
 5 res = ew.supported_extensions
 6 print('The property supported extension :')
 7 print(res)
In the above example, a ExcelWriter object is created by passing a filename. A supported_extensions property is access that returns object that represents the supported extensions that assign to the variable that will be printed on console.
Output
 1 The excel supported extensions :
 2 ('.xlsx', '.xlsm')

Example 2

Example 2
 1 import pandas as pd
 2 
 3 # executed with engine - openpyxl
 4 ew = pd.ExcelWriter('mydata.xlsx')
 5 res = ew.supported_extensions
 6 print('The property supported extension :')
 7 print(res)
In the above example, a ExcelWriter object is created by passing a filename. A supported_extensions property is access that returns object that represents the supported extensions that assign to the variable that will be print.
Output
 1 The excel supported extensions :
 2 ('.xlsx', '.xlsm')
Privacy Policy
Terms of Service
Disclaimer
Contact us
About us