Sometimes, you would need a row numbering partitioned by some fields. T-SQL gives you this. Is there a chance to get a function for this, even you have something like groupby(combine(df, :field1) , :field1=> (row->1:length(row))=>:rownumber)
Something like RowNumber(df, field1) or a funcion la nrow would be helpful to create the new field.