5 列都是字符/字符串(在 SQL Server、SAS 中验证并使用 .select_dtypes(include=[object]))。 为了更好地衡量,我使用了 .to_string() 来确保 problem_column 除了字符串之外真的没有任何东西,但我继续收到错误。如果我分别处理这些列 good_column1-good_column4 继续工作并且 problem_column 仍然会产生错误。