0

Can Python 3 read any file other than. txt?

15th Apr 2018, 5:31 AM
Soumyadip Ray
Soumyadip Ray - avatar
4 Answers
+ 8
Sure! What kind of files you need to be read by your script?
15th Apr 2018, 5:34 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 6
Pandas module is great at reading csv and xls files: https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_excel.html Images can be read and processed by for example the pillow module: https://pillow.readthedocs.io/en/5.1.x/
15th Apr 2018, 6:02 AM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 6
i have been using XlsxWriter for excel files seem to have done a pretty good job http://xlsxwriter.readthedocs.io
15th Apr 2018, 6:16 AM
Burey
Burey - avatar
+ 1
If I want a .jpg file or an Excel spreadsheet to read in python what would be the process?
15th Apr 2018, 5:36 AM
Soumyadip Ray
Soumyadip Ray - avatar