Compare ways to read Excel files in Python.
The repo includes the source files for running the benchmarks presented in the article "Fastest Way to Read Excel in Python".
Create a virtual environment and install dependencies:
$ python -m venv venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.txtTo run the benchmark execute the following command:
(venv) $ python benchmark.pyThe repo includes two Excel files:
-
file.xlsx: large file used for the benchmark -
file-sample.xlsx: smaller file to use for development