Re: I can't access dataframe fields

2020-02-17 Thread Markos
Hi MRAB, I changed last_cluster to tuple(last_cluster). From: print (updated_distance_matrix_df.loc [clusters [i], last_cluster]) to print (updated_distance_matrix_df.loc [clusters [i], tuple(last_cluster)]) And worked. Thank you, Markos Em 15-02-2020 23:36, MRAB escreveu: On 2020-02-16

Re: I can't access dataframe fields

2020-02-15 Thread MRAB
On 2020-02-16 00:50, Markos wrote: Hi all, I created the following data frame (updated_distance_matrix) P1    P2    P4    P5   (P3, P6) P1 0,00 0,244307 0,367696 0,341760 0 P2 0.234307 0.00 0.194165 0.1443178 0 P4 0.366969 0.194165 0.00 0.28425