How to Solve NameError: name 'models' is not defined -- powerbiclient

Solution: Import the 'models' module

To Solve the error, add the following line to the top of your code.

from powerbiclient import models

 

For more information:
Python powerbiclient models