Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bbennett36/ef0195d5ea8d8c2398307dcbc2665ce6 to your computer and use it in GitHub Desktop.
Save bbennett36/ef0195d5ea8d8c2398307dcbc2665ce6 to your computer and use it in GitHub Desktop.
pandas apply lambda
new_data['date'] = new_data['date'].apply(lambda x: str(x).replace('-', '')).astype(np.float)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment