How to cluster values and their locations

54
October 25, 2019, at 5:50 PM

I have a dataframe of values and their positions. I want to cluster them. Ideally, I would be able to cluster them in three dimensions.

Df:
Values Position OtherInfo
31     X5       foo
2      A10      bar
3      U1       foobar
4      X5       bar

The color in the plot at the end should be the Values, on the axes should be Position and OtherInfo.

This is the first time that I am clustering something outside of class where we got explicit instructions, so I am a bit lost. I tried using AgglomerativeClustering from sklearn, but that doesn't work with string columns and also I couldn't find the option to add a third dimension.

To make my request more clear: The output should look like/be a heatmap with the values on the axes clustered. I would be really happy about any help!

READ ALSO
Is there a tool for restoring scss-files from a map-file?

Is there a tool for restoring scss-files from a map-file?

I have a *map file and I want to restore *

36
Send text to twitch.tv chat box with jquery

Send text to twitch.tv chat box with jquery

I am trying to send text to the twitch chat box through the consoleI am targeting the text area with jquery but can also do pure js

46
Copying emojis in text from MySQL to SQL Server

Copying emojis in text from MySQL to SQL Server

I am copying data from MySQL to SQL Server using a linked server

37
SQL: group by multiple limits

SQL: group by multiple limits

I have a simple table with id,key,level,table and data are something like this :

39