It’s likely that the issue you’re encountering is due to incompatibilities between some of your packages and Python 3.12, which is used by default on Heroku. From what I understand, numpy=1.19.5 and pandas=1.1.5 are compatible only up to Python 3.9.
Have you tried specifying python-3.9.18 in your runtime.txt file?