How to Solve NameError: name 'as_pandas' is not defined -- pyathena
Solution: Import the 'as_pandas' module
To Solve the error, add the following line to the top of your code.
from pyathena.util import as_pandas
For more information:
Python pyathena as_pandas