Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested Minor Correction for /2-Regression/4-Logistic/README.md #768

Open
misaraty opened this issue Oct 5, 2024 · 0 comments
Open

Suggested Minor Correction for /2-Regression/4-Logistic/README.md #768

misaraty opened this issue Oct 5, 2024 · 0 comments

Comments

@misaraty
Copy link

misaraty commented Oct 5, 2024

Dear Developers,

I've been engaging with your ML-For-Beginners project on GitHub and found it immensely helpful. Thank you for creating such valuable resources for beginners.

I would like to suggest a minor correction in the code found in this section. The existing code snippet:

palette = {
    0: 'orange',
    1: 'wheat'
}
sns.swarmplot(x="Color", y="ord__Item Size", data=encoded_pumpkins, palette=palette)

produces a ValueError due to mismatched dictionary keys. The keys should be strings to match the data types in the 'Color' column. Here is the corrected code:

palette = {
    '0': 'orange',
    '1': 'wheat'
}
sns.swarmplot(x="Color", y="ord__Item Size", data=encoded_pumpkins, palette=palette)

Thank you for considering this correction.

Best regards,

Misaraty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant