From time to time I teach python beginners on how to write data from pandas to excel. Quite often they happen to provide a sheetname that is of type int. The errormessage shown, i.e. that a int type variable has no len might be clear for experienced users, but might be difficult to understand for beginners. Therefore, I opened a mini PR, introducing a type check and a clear error message for wrong type sheetnames.
Feature Request
From time to time I teach python beginners on how to write data from pandas to excel. Quite often they happen to provide a
sheetname
that is of typeint
. The errormessage shown, i.e. that aint
type variable has nolen
might be clear for experienced users, but might be difficult to understand for beginners. Therefore, I opened a mini PR, introducing a type check and a clear error message for wrong type sheetnames.