Whenever I try to read Excel using
part=pd.read_excel(path,sheet_name = mto_sheet)
I get this exception:
<class 'Exception'> 'ReadOnlyWorksheet' object has no attribute 'defined_names'
This is if I use Visual Studio Code and Python 3.11. However, I don't have this problem when using Anaconda. Any reason for that?