colonnade icon indicating copy to clipboard operation
colonnade copied to clipboard

Lookup and indexing functions

Open ocramz opened this issue 3 years ago • 2 comments

Is there a way to lookup indices, filter rows and so on?

ocramz avatar Dec 14 '22 14:12 ocramz

Can you explain what you mean? I think that, to filter rows, you would filter the collection that you are encoding it before passing it to any of colonnade’s functions.

andrewthad avatar Dec 14 '22 14:12 andrewthad

Yes sorry for the brief ticket, this confirms my understanding of the API.

The internal OneColonnade ("Column" ?) type is a sort of "pull array" [1] but has no notion of row index.

I was looking for a way to use 'colonnade' as the basis for a "dataframe" of sorts, like Apache Arrow.

  1. https://hackage.haskell.org/package/massiv-1.0.0.0/docs/src/Data.Massiv.Array.Delayed.Pull.html#DArray

ocramz avatar Dec 15 '22 04:12 ocramz