📜  在精确点python代码示例中拆分列

📅  最后修改于: 2022-03-11 14:47:16.041000             🧑  作者: Mango

代码示例2
df["Basic Stats"] = df["Basic Stats"].str.slice(9,13)



  Basic Stats       Min       Max      Mean     Stdev
0        2010  0.336438  0.743478  0.592622  0.052544
1        2009  0.313259  0.678561  0.525667  0.048047
2        2008  0.374522  0.746828  0.583513  0.055989
3        2007 -0.000000  0.749325  0.330068  0.314351
4        2006 -0.000000  0.819288  0.600136  0.170060