We have 2 columns in the first Site_ID (any, but repeated), in the second Level (0 or 1)
well, an example
123.0
666.1
967.0
666.0
In the end, I want to get (Site_id / count (Level = 0) / count (Level = 1)), that is, from the example above, we get
123,1,0
666,1,1
967,1,0