Finding count of distinct elements in DataFrame in each column

前端 未结 8 1157
半阙折子戏
半阙折子戏 2020-12-02 18:27

I am trying to find the count of distinct values in each column using Pandas. This is what I did.

import pandas as pd
import numpy as np

# Generate data.
NR         


        
8条回答
提交回复
热议问题