Answers for "put datatype on variable 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 "put datatype on variable python"

Python Answers by Framework

Browse Popular Code Answers by Language