chapel-lang / chapel

a Productive Parallel Programming Language
https://chapel-lang.org
Other
1.78k stars 418 forks source link

language support for categorical data #12789

Open vasslitvinov opened 5 years ago

vasslitvinov commented 5 years ago

This issue requests language support for "categorical data".

"Categorical data" is somewhat like an enum type. More specifically:

An interesting implementation challenge is to support more than one set of categories per program execution. In that case, the implementation needs to correlate an integer index with the lookup table. Possible solutions:

LouisJenkinsCS commented 5 years ago

If it's not too much to ask, can you provide a code-snippet of what you'd envision that this would look like?

vasslitvinov commented 5 years ago

I do not have a proposal at the moment.

Something to consider is Categoricals in Pandas .

reuster986 commented 5 years ago

This is a good start!

See also the Categorical API reference for ideas. We don't have to do everything that pandas does or the way pandas does it, but their API is a good clue to the needs of the data science community.

Additional considerations: