[Python] could not convert string to float: 'D' [closed]

Discussão em 'Python' iniciado por Stack, Janeiro 31, 2025.

  1. Stack

    Stack Membro Participativo

    im trying to code a classifier for school but this cell does not want to work

    data = df_prep[["avg_h", "avg_d", "avg_a", "Mean_3_FTHG", "Mean_3_FTAG", "FTR"]]
    corr = data.corr()

    mask = np.triu(np.ones_like(corr, dtype=bool))

    sns.pairplot(data, hue="FTR", markers=["o", "s","D"], palette="Set2", corner=True)

    plt.show()

    Continue reading...

Compartilhe esta Página