I'm new to python and need help. I'm trying to produce a binary matrix (presence/absence) with the following data in a CSV format. I have tried several codes found in chats, but non of them solved the problem.
| site_Name | tool1 | tool2 | tool3 |
|---|---|---|---|
| site1 | 0 | 1 | 0 |
| site2 | 1 | 0 | 0 |
| site3 | 0 | 0 | 1 |
| site4 | 0 | 1 | 1 |
I have tried to convert the dataset into numpy array, transposed the dataset, dropping columns, etc
You could try a seaborn heatmap: