Created
August 19, 2020 09:28
-
-
Save sid321axn/7323971e5f1eea78e3b9346d70dc8d46 to your computer and use it in GitHub Desktop.
This file contains 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
df['hostname_length'] = df['url'].apply(lambda i: len(urlparse(i).netloc)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment