Skip to content

Instantly share code, notes, and snippets.

@mzumi
Created March 12, 2015 12:51
Show Gist options
  • Save mzumi/03bcf801b2046055bdf2 to your computer and use it in GitHub Desktop.
Save mzumi/03bcf801b2046055bdf2 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