count number of each elements in pandas column code example Example: count elements in columns pandas df['COL_NAME'].count(axis=1)