Python is reading my data with NANS and Infs, but they don't have any
You should use pandas.DataFrame.describe() to find the values that are present in the feature and see which specific values might be an issue.