python クロス集计

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python クロス集计相关的知识,希望对你有一定的参考价值。

'''
**Fundamental**
'''
import pandas as pd
import numpy as np

df = pd.DataFrame(
    {'カラム1': 'column01'
    , '比較対象カラム': 'comp_column'}
)

pd.crosstab(index = df['カラム1'], columns = df['比較対象カラム'])

以上是关于python クロス集计的主要内容,如果未能解决你的问题,请参考以下文章