Код: Выделить всё
data.hist(by=['ascites', 'sex', 'drug'])
plt.title('Ascites Distribution')
plt.xlabel('Age')
plt.ylabel('Number of Patients')
plt.show()
[img]https://i.stack .imgur.com/GI3An.png[/img]
Подробнее здесь: https://stackoverflow.com/questions/783 ... -histogram