Run
import pandas as pd df = pd.DataFrame( [['abc', 22], ['xyz', 25], ['pqr', 31]], columns=['name', 'age']) datatypes = df.dtypes for dtype in datatypes: print(dtype)
Output