The Pandas ExcelWriter property supported_extensions used to determine the extensions that writer engine supports.
1 ExcelWriter.supported_extensions
supported_extensions property
1 import pandas as pd
2
3
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.
1 The excel supported extensions :
2 ('.xlsx', '.xlsm')
Example 2
1 import pandas as pd
2
3
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.
1 The excel supported extensions :
2 ('.xlsx', '.xlsm')
Related options for your search