I have a point layer with an attribute table like this:
id_point class
1 A
2 B
3 A
4 C
5 B
...
What I need is to count how many points of any class are in every polygon. Something like this
id_pol A B C
pol1 1 2 0
pol2 1 0 1
...
Is there a way to count points within polygons grouping by a point attribute using Python in QGIS 3?
I think QGIS 2 had a Count Unique Features by Polygon but I can't find it in QGIS 3.