I have seen :
arcpy.Frequency_analysis(inTable, outTable, frequencyFields, summaryFields)
But This creates a new table with the results. I just want to add another field that will do that to an existing feature layer.
NTX layer, counts each row how many times occurs in the dataset.
if SSA occurs 21 times the new column 'count' will be like this:
NTX name COUNT SSA 21 SSC 1 SDD 98 ...
In pandas this can be:
df['count_']=[df['col1'].value_counts().loc[x] for x in df['col1']]
How to do it in ArcPy?