If you use read_excel()
to read a .csv
you will get the error
XLRDError: Unsupported format, or corrupt file: Expected BOF record;
To read .csv
one needs to use read_csv()
, like this
df1= pd.read_csv("filename.csv")
More Related Contents:
- Writing to an Excel spreadsheet
- Create a .csv file with values from a Python list
- How to write to an Excel spreadsheet using Python?
- Python convert csv to xlsx
- Pandas: Looking up the list of sheets in an excel file
- python xlrd unsupported format, or corrupt file.
- xls to csv converter
- Reading Excel File using Python, how do I get the values of a specific column with indicated column name?
- Get formula from Excel cell with python xlrd
- Convert date from excel in number format to date format python [duplicate]
- How to obtain sheet names from XLS files without loading the whole file?
- IndexError: too many indices for array
- Insert row into Excel spreadsheet using openpyxl in Python
- Edit existing excel workbooks and sheets with xlrd and xlwt
- Identifying Excel Sheet cell color code using XLRD package
- Python Pandas – Read csv file containing multiple tables
- Importing a CSV file into a sqlite3 database table using Python
- how to merge 200 csv files in Python
- ImportError: No module named win32com.client
- Python csv.reader: How do I return to the top of the file?
- Write dictionary of lists to a CSV file
- Pandas: ValueError: cannot convert float NaN to integer
- ‘utf-8’ codec can’t decode byte 0xa0 in position 4276: invalid start byte
- How to copy worksheet from one workbook to another one using openpyxl?
- Convert HTML into CSV
- How to read SharePoint Online (Office365) Excel files in Python with Work or School Account?
- Use Python to Inject Macros into Spreadsheets
- Pandas groupby to to_csv
- Python 3 CSV file giving UnicodeDecodeError: ‘utf-8’ codec can’t decode byte error when I print
- Python3: writing csv files