Skip to content

Instantly share code, notes, and snippets.

@AnasAlmasri
Created May 9, 2020 17:59
Show Gist options
  • Save AnasAlmasri/449ce7d53d7bb1b0ca95f377eafc938e to your computer and use it in GitHub Desktop.
Save AnasAlmasri/449ce7d53d7bb1b0ca95f377eafc938e to your computer and use it in GitHub Desktop.
# convert numeric data types to float
df['views'] = df['views'].astype(float)
df['reads'] = df['reads'].astype(float)
df['fans'] = df['fans'].astype(float)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment