Answers for "change data type to float python"

3

python: transform as type numeirc

df['myvar'] = df['myvar'].astype(str)   # Transform as character
df['myvar'] = df['myvar'].astype(float) # Transform as float
df['myvar'] = df['myvar'].astype(int)   # Transform as numeric
Posted by: Guest on July-06-2020

Code answers related to "change data type to float python"

Python Answers by Framework

Browse Popular Code Answers by Language