我有一个巨大的数据,它看起来是这样的:
gemeente Partij Perioden Bevolking/Bevolkingssamenstelling op 1 januari/Totale bevolking (aantal) Bevolking/Bevolkingssamenstelling op 1 januari/Geslacht/Mannen (aantal) Bevolking/Bevolkingssamenstelling op 1 januari/Geslacht/Vrouwen (aantal) Bevolking/Bevolkingssame
我有一个带有ID列和一些特性列的DataFrame。我希望看到关于每个列值中有多少唯一ID的描述。def unique_ids(df): for col in sorted(c for c in df.columns if c != id_col):
v = df.groupby(col)[id_col].nunique().descri