Hello I have DataFrame like below:
df = pd.DataFrame({"T1" : [1, 0, 1, 1],
"T2" : [0, 0, 0, 1],
"ID" : ["1", "2", "3", "4"]})
And I need to draw bar chart with percentage distribution of T1 and T2 like below:
T11 = 75% because T1 has 75% of 1
T10 = 25% because T1 has 75% of 0
T21 = 25% because T1 has 75% of 1
T20 = 75% because T1 has 75% of 0