Tricontourf Matplotlib

Viewed 39

I'm trying to plot a CSV file which contains data for CKD diagnosed people into a tricontourf using multiple features and highlight the ones which 'Class' is 1 (meaning they have CKD) I've got no idea how to do this but I can show you what I'm trying:

x = df['Blood Glucose Random']
y = df['Blood Urea']
z = df['Sodium']
w = df['Age']
k = df['Class']

triang = mtri.Triangulation(x, y, z, w, k)

t = plt.tricontourf(triang)

plt.show

This is a totally broken code, I know, but I hope it can explain my intentions :)) Here's like an example

https://matplotlib.org/2.1.2/_images/sphx_glr_tricontour_vs_griddata_001.png

Here's dataset example enter image description here

Basically the goal of what I'm trying is to manually find some features for training a ML model. Any idea is good welcome, so thank you very much!

0 Answers
Related