I have 4 columns in a dataframe which I would like to see whether there is a correlation. I thought it could give me some insight by ploting them in a 3D plot and then adding the 4th dimension as a heatmap, but I have no ideia how to add this heatmap linked to one column in a dataframe.
This is what I've got so far:
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure(figsize=(12,12));
ax = fig.add_subplot(111, projection='3d');
ax.scatter(Series1,Series2,Series3);
Which returns me this:
(https://i.stack.imgur.com/qRGMv.png)
So, there are points of Series1
,Series2
and Series3
on it... but is there a way to add a heatmap or anything to distinguish from a Series4
?