擅长:python、mysql、java
<p>在<code>groupby</code>和<code>agg</code>命令之间需要<code>domain</code>。如果需要,在管道连接周围添加间距,例如<code>' | '.join(...)</code>。在</p>
<pre><code>pDNSPanda.groupby("ip").domain.agg('|'.join)
ip
46.101.214.145 cnwkabrnyld1c0[.]com|anfj63m[.]com|anf3xnem[.]com
69.195.129.70 cnwkabrnyld1c0[.]com|anfj63ms[.]com
Name: domain, dtype: object
</code></pre>
<p>如果您的域中有浮动,最好将它们转换为字符串。在</p>
^{pr2}$