将Pandas 数据列转换为不同类型的最简单方法就是用 astype() 。例如,要将 Customer Number 转换为整数, ... df['2016'].astype('float') 复制代码
確定! 回上一頁