Answers for "how to convert class pandas core series series into int"

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 "how to convert class pandas core series series into int"

Python Answers by Framework

Browse Popular Code Answers by Language