Value count of complex numbers with pandas

后端 未结 0 671
南旧
南旧 2020-12-10 06:34

why does the following

import pandas as pd

df = pd.DataFrame([1,2,2+1j,4,5+1j])

c = df[0].value_counts()

result in

(2+0j)  2         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题