Skip to content

Needs an explanation for Indexer #39

Description

@duffee

A number of methods (at, select_columns) refer to the indexer without ever explaining what it is and the concept behind it. I've got a vague idea from reading around Numpy/Pandas, but I can't guess at why my code doesn't always do what I expect. Probably hidden away by the _internal data structure. It'll help people coming at this for the first time.

It could explain why these two methods stringify the same, but they don't coerce the same

$h1 = double $df->at(6)
[ 1,344.5 1,309.3 1,295.5 1,292.4 1,258]

$h2 = double $df->columns( 'Height' )
[0 1 2 3 4 5]

for inspiration - https://pandas.pydata.org/docs/user_guide/indexing.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions