to change use .astype() drinks['beer_servings'] = drinks.beer_servings.astype(float). In [10]:. drinks.dtypes. Out[10]:.
確定! 回上一頁