Skip to content

Instantly share code, notes, and snippets.

@mzumi
Last active August 29, 2015 14:16
Show Gist options
  • Save mzumi/dab0d19341add73830b4 to your computer and use it in GitHub Desktop.
Save mzumi/dab0d19341add73830b4 to your computer and use it in GitHub Desktop.
# 年月の単位の列を追加する
user_info['log_month'] = user_info['log_date'].apply(lambda x: str(x)[0:7])
user_info['install_month'] = user_info['install_date'].apply(lambda x: str(x)[0:7])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment