Mercurial > repos > bimib > cobraxy
comparison COBRAxy/marea_cluster.py @ 153:a95ac9ae9648 draft
Uploaded
author | bimib |
---|---|
date | Thu, 07 Nov 2024 10:03:03 +0000 |
parents | 7f3552eaf774 |
children | 49fb0556242f |
comparison
equal
deleted
inserted
replaced
152:7f3552eaf774 | 153:a95ac9ae9648 |
---|---|
145 Returns: | 145 Returns: |
146 dict: The rewritten dataset as a dictionary of lists. | 146 dict: The rewritten dataset as a dictionary of lists. |
147 """ | 147 """ |
148 #Riscrivo il dataset come dizionario di liste, | 148 #Riscrivo il dataset come dizionario di liste, |
149 #non come dizionario di dizionari | 149 #non come dizionario di dizionari |
150 | 150 dataset = dataset.iloc[:, 1:] |
151 dataset.pop('Reactions', None) | 151 #dataset.pop('Reactions', None) |
152 | 152 |
153 for key, val in dataset.items(): | 153 for key, val in dataset.items(): |
154 l = [] | 154 l = [] |
155 for i in val: | 155 for i in val: |
156 if i == 'None': | 156 if i == 'None': |