Error 'NoneType' object has no attribute 'iloc'

I’m running the documentation notebooks in my laptop, but I keep getting this error. I’ve attached screenshots.

Laptop running code error:



Error from google colab:

Any suggestions or comments would be appreciated
Thanks