change a coolumn datatype in pandas code example Example: change a coolumn datatype in pandas df = df.astype({"Column 1": float, "Column 2": int})