简体   繁体   English

Pandas 平行坐标可视化

[英]Pandas Parallel Coordinates Visualization

I have a dataframe that looks like this:我有一个看起来像这样的数据框:

        var1      var2        var3        var4
    0.319192    0.171150    0.171150    0.025979
    0.000000    0.000000    0.000000    0.000000
    0.064174    0.412816    0.412816    0.123353
    0.169651    0.154202    0.154202    0.114456
    0.351844    0.128112    0.128112    0.142504
    0.110982    0.294123    0.294123    0.308963

I am trying to think of ways to visualize how each of these variables vary with each other - multivariable visualization.我试图想办法可视化这些变量中的每一个如何彼此变化 - 多变量可视化。 What do you reckon would be the best way to do this?你认为最好的方法是什么? With Parallel coordinates, like below?使用平行坐标,如下所示? I cann't seem to determine how to modify my dataframe to get a 'class column'.我似乎无法确定如何修改我的数据框以获得“类列”。 Any ideas would be greatly appreciated!任何想法将不胜感激! 在此处输入图片说明

This is a very broad question and arguably not really a programming question.这是一个非常广泛的问题,可以说不是真正的编程问题。 Typically if you want to get an overview of the correlations and distributions you would use a pairs plot, also known as a scatterplot matrix.通常,如果您想了解相关性和分布的概况,您可以使用配对图,也称为散点图矩阵。 See this article:看这篇文章:

https://towardsdatascience.com/visualizing-data-with-pair-plots-in-python-f228cf529166 https://towardsdatascience.com/visualizing-data-with-pair-plots-in-python-f228cf529166

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM