pandas version from python script code example Example: pandas version from python script import pandas as pd print(pd.__version__) # 0.22.0