astype(dtype) with dtype as a dictionary containing mappings of column names to values to change the type of each column in pandas.DataFrame . print(df). Output.
確定! 回上一頁