Skip to content

Instantly share code, notes, and snippets.

@jmquintana79
Last active September 5, 2024 14:06
Show Gist options
  • Save jmquintana79/78c3e60faa388164a51734e2832c317b to your computer and use it in GitHub Desktop.
Save jmquintana79/78c3e60faa388164a51734e2832c317b to your computer and use it in GitHub Desktop.
df = df.astype({col: 'float32' for col in df.select_dtypes('float64').columns})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment