Skip to content

Incorrect pew_long.tail() examples in 6.2.1 #14

@johncassil

Description

@johncassil

Hello,

Really appreciating this book. I thought I'd take the time to register that this doesn't add up.

In the pew dataset shown in the below picture, "Don't know/refused" is a value in the religion column:
IMG_20200227_184136__01__01

After we melt with:
pew_long = pd.melt(pew, id_vars="religion")
we should not see this value in the new variable column on page 126. (There is another example of this with different arguments right afterward that also have this value in the income column):
IMG_20200227_184144__01__01

I can't say what went wrong, and I'm on mobile at the moment, but I thought I'd let you know!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions