以前は動いていたコードなのに、今回実行したらなぜか
TypeError: read_excel() got an unexpected keyword argument ‘encoding’
というエラーが出てしまいます。pandasのバージョンがいつのまにかアップグレードされていて、使えなくなったということなのでしょうか。ネットを調べたら、やはり、以前のバージョンではOKだったみたいです。
I know that Providing encoding as a keyword argument is unnecessary and only “worked” before so what is the alternative of encoding in pandas 1.2.3 that i can use. https://stackoverflow.com/questions/69015459/read-excel-not-accepting-encoding-on-pandas-1-2-3
とりあえず、その部分を削除したら問題なく動作しました。