How to Solve NameError: name 'Time' is not defined -- astropy

Solution: Import the 'Time' module

# Add the following line to the top of your code
from astropy.time import Time

 

For more information:
astropy Time