Skip to content

How to convert a pandas series from int to float in Python?

df['DataFrame Column'] = df['DataFrame Column'].astype(float)
See also  Python code snippet - How to set multiple conditional for single var?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.