Skip to content

fix: add missing quotes around species column in aes() exercise code - #69

Open
Jah-yee wants to merge 1 commit into
aeturrell:mainfrom
Jah-yee:fix/species-quote-typo
Open

fix: add missing quotes around species column in aes() exercise code#69
Jah-yee wants to merge 1 commit into
aeturrell:mainfrom
Jah-yee:fix/species-quote-typo

Conversation

@Jah-yee

@Jah-yee Jah-yee commented Aug 17, 2026

Copy link
Copy Markdown

Summary

In the Data Visualisation chapter's exercises section, the example code uses which in Python's plotnine would attempt to reference a variable named rather than the column named .

Changed:

Files changed:

Affected lines (706, 709):

  • Exercise 2 code blocks now correctly use with the string column name, matching how the rest of the chapter uses quoted column names.

This is a single-commit PR with a minimal, surgical fix per the project guidelines.

In the data-visualise exercises, aes(x = species) should use aes(x = "species")
to correctly reference the "species" column as a string in plotnine.
@Jah-yee

Jah-yee commented Aug 17, 2026

Copy link
Copy Markdown
Author

Hi! This PR fixes the missing quotes around species in the aes() calls in the exercise code. In Python's plotnine, column names must be quoted strings. Happy to make any adjustments!

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

Successfully merging this pull request may close these issues.

1 participant