Skip to content

Instantly share code, notes, and snippets.

@jmquintana79
Last active November 4, 2024 07:48
Show Gist options
  • Save jmquintana79/866efbc4a3f0e331f9b7a1d8612d1167 to your computer and use it in GitHub Desktop.
Save jmquintana79/866efbc4a3f0e331f9b7a1d8612d1167 to your computer and use it in GitHub Desktop.
df = df.astype({col: 'float32' for col in df.select_dtypes(include='float64').columns})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment