Skip to content

Pandas DataFrames episode need section about using tuples/lists #207

@rgaiacs

Description

@rgaiacs

http://swcarpentry.github.io/python-novice-gapminder/08-data-frames/ mentions the use of "identifiers" (numbers or strings), : and slice to select part of a dataframe. You can also use tuples/lists and I think this is a important concept that should not left as a exercise or for learners teach themselves.

We should add something like

data.ix[('Norway', 'Italy', 'Poland', 'Netherlands'), 'gdpPercap_1962':'gdpPercap_1972']

into that episode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood issue for first-time contributorshelp wantedLooking for Contributorstype:enhancementPropose enhancement to the lessontype:feedbackIssue to provide feedback on lesson

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions