Created
July 7, 2020 08:12
-
-
Save kurasaiteja/de5956dbea67ccdf8b4a37d2a8eea93f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
messages_df['Letter_Count'] = messages_df['Message'].apply(lambda s : len(s)) | |
messages_df['Word_Count'] = messages_df['Message'].apply(lambda s : len(s.split(' '))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment