I have a dataframe that looks like this:
simple = pd.DataFrame([
(80,100 ),
(100,90 ),
(80, 90 ),
], columns=['content_x', 'content_y'])
content_x content_y
0 80 100
1 100 90
2 80 90
I'd want to count the occurrences of values in content_x over the content_y column. (In Excel, I use a countif)
The final output would look like this:

