What do the different colors of columns in Data view of SciView of PyCharm mean?
Answered
Sometimes when I view DataFrames or Arrays in the SciView data window the columns are colored and different from each other. Other times, at least with Arrays, there is no color coding. The color coding seems to be by column and not by row. I've pasted two screenshots. One that shows the same data with no color coding and then I do some operations and the same data is now color coded. What do the colors indicate? And, what operations are causing the colors to be applied?
Not Color Coded:
Color Coded:
Please sign in to leave a comment.
Ah, I see it now as I scroll. It appears to be a color gradient based on relative values, e.g., the largest values appear to be red whereas smallest values appear to be blue. It just happened that the first several hundred rows were so close in value that there was apparently no change in color.
Would someone please verify this is the correct interpretation?
However, I'm still curious what operations lead to the color gradient being applied to one view versus another?
Hi Joshua,
Thank you for contacting PyCharm support.
Yes, your understanding is correct. You can choose if you want the table to be coloured or not by right clicking the tab (https://www.jetbrains.com/help/pycharm/data-view.html)
Please do not hesitate to ask any questions.
Kind regards,
Sergey
https://www.jetbrains.com
The Drive to Develop
May I know how sciview get outlier points with different colors? May I know the detail algorithm in terms of this?
No, you may not know. lol
I'm a little late to the game but I just asked myself the same question.
This is the method that renders the colored cell:
https://github.com/JetBrains/intellij-community/blob/acaec7ba6df3516cf3e844c757dbccb1bbdc3380/python/src/com/jetbrains/python/debugger/dataframe/DataFrameTableCellRenderer.java#L28
And here is the algorithm:
https://github.com/JetBrains/intellij-community/blob/master/python/src/com/jetbrains/python/debugger/containerview/PyNumericViewUtil.java