Examples
import numpy as np import pandas as pd
df = pd.DataFrame({"X": ["p", 2, 3, 4]}) df = df.iloc[1:] df
df.dtypes
X object dtype: object
df.infer_objects().dtypes
X int64 dtype: object