try executing
pip freeze
and look whether you have pandas or not
if you are having multiple python versions on your computer check which one are you using to run the script and which one is used to install the pandas package
and test by making
import pandas
print("Hello world!")
print("Great day!")