我有一个pandas数据框,其中以随机顺序包含电子邮件地址和电子邮件域。
我想汇总数据框以按域生成计数。
给出:
<resources>
<!-- Basic paper theme -->
<style name="Theme.Paper" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary</item>
<item name="colorAccent">@color/accent</item>
<item name="windowNoTitle">true</item>
<item name="actionModeStyle">@style/Widget.Paper.ActionMode</item>
<item name="windowActionModeOverlay">true</item>
<item name="actionModeCloseDrawable">@drawable/ic_close_white_24dp</item>
<item name="actionMenuTextColor">@color/white</item>
<item name="android:windowLightStatusBar">false</item>
<item name="android:navigationBarColor">@color/primary_dark</item>
<item name="android:windowLightNavigationBar">false</item>
</style>
<!-- Splash theme. -->
<style name="Theme.Paper.Launcher" parent="Theme.Paper">
<item name="colorPrimary">@android:color/white</item>
<item name="colorPrimaryDark">@android:color/white</item>
<item name="android:windowBackground">@drawable/bg_splash</item>
<item name="android:windowLightStatusBar">true</item>
<item name="android:navigationBarColor">@android:color/white</item>
<item name="android:windowLightNavigationBar">true</item>
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
</style>
</resources>
如何按域进行汇总并获得类似的计数
b.com 3
a.com 2