update astype keyerror msg
Hi!

This is extremely minor and i just quickly did it in codespaces but I ran into this a few times and I thought it might be helpful for others.
Docs failure is not related thanks @endremborza 