Skip to content

Axes labels of graphs switched at Line 396 & 632 #32706

@aquilaiovita

Description

@aquilaiovita

Describe the issue linked to the documentation

Common pitfalls in the interpretation of coefficients of linear models

In line 396, plt.scatter(coefs["AGE"], coefs["EXPERIENCE"]), the Experience variable should be on x-axis if it were to follow the labelling in Line 392 plt.xlabel("Experience coefficient").

Similar issue in line 632.

Here is the codefile on Github.
Link to documentation on main website

Suggest a potential alternative/fix

Replace the code in line 396 & 632 with plt.scatter(coefs["EXPERIENCE"], coefs["AGE"])

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions