Answers for "changing data type in python"

0

changing data type in python

# convert data type of grade column 
# into integer
df.column_name = df.column_name.astype(d_type)
  
# show the dataframe
print(df)
  
# show the datatypes
print(df.dtypes)
Posted by: Guest on August-03-2021

Code answers related to "changing data type in python"

Python Answers by Framework

Browse Popular Code Answers by Language