I have a dataFrame of the form:
0
college gender
Engineering F 117
M 2240
and I want to change it to:
college M:F
Engineering 19:1
where M:F represents the ratio of Male to Female.
Is there anyway to do this with pandas without iterating over all rows?