Skip to content

Instantly share code, notes, and snippets.

@DeviaVir
Created May 30, 2017 10:07
Show Gist options
  • Save DeviaVir/ccda48d3b9f9b95c51db630873b9a2f3 to your computer and use it in GitHub Desktop.
Save DeviaVir/ccda48d3b9f9b95c51db630873b9a2f3 to your computer and use it in GitHub Desktop.
import pandas as pd
ecom = pd.read_csv('Ecommerce Purchases')
ecom['Email'].apply(lambda x: x.split('@')[1]).value_counts().head(5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment