- 博客(1)
- 收藏
- 关注
原创 救救把child吧,求解决方案pandas.errors.IntCastingNaNError: Cannot convert non-finite values (NA ochi
pandas.errors.IntCastingNaNError: Cannot convert non-finite values (NA or inf) to integerdf = pd.read_csv("WorldCupMatches.csv")print(df.head())df['Year'].fillna(0) # (网上搜到的可能是数据有空位置,将NA填充为o,但依然不好用)df['Year'] = df['Year'].astype(int) # (如何更改dataf
2022-02-24 15:46:12 3348 22
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人