如果我使用'coerce'来处理字符串,它们将被NaN取代 df2 = df1.apply(lambda x: pd.to_numeric(x.astype(str).str.replace(',',''), errors='coerce')) ...
確定! 回上一頁