Every time I try the method infer_objects(), even when following the official doc (link), I got this error:
AttributeError: 'DataFrame' object has no attribute 'infer_objects'
Example of code:
import pandas as pd
df = pd.DataFrame({"A": ["a", 1, 2, 3]})
df = df.iloc[1:]
df = df.infer_objects()
Why do I get this error?