Every guide/tutorial I found explains how to apply symbology to a layer using the "arcpy.ApplySymbologyFromLayer_management". Instead, I do have a style file, and I want to match the fields on the attribute file with the icons on the style file, through python (point layer, unique values symbology).
Is it even possible to do that through python?
I ask that because there are over 100 icons on the style file, each one for a possible value. If I use Apply Symbology from Layer, I will end up with dozen empty icons on the legend, which I have to remove manually. So if anyone also knows how to remove icons that the count is zero on the symbology (through python), it also works