daphne-project / daphne-project/daphne

implement count built-ins for DaphneDSL

Open
#910 0 comments 0 reactions 0 assignees View on GitHub
feature
Dominant language
C++
Stars
81
Forks
83
PR merge metrics
No merged PRs in 30d

Description

sth. to count a specific values like `count(matrix[,0], value)` (or from a frame)(also on strings)

and/or

unique_counts as know from [numpy](https://numpy.org/doc/stable/reference/generated/numpy.unique.html)

There are currently ways to circumvent this by reshaping a matrix into single col, convert it to a frame, register it as a view and finally conduct SQL ops

Or is it the idea to provide such functionality trough SQL?

Contributor guide

Open the contributing guide

Research direction

Start by locating the DaphneDSL built-in-function definitions and checking whether count operations are already exposed through SQL. Compare the requested count(matrix[,0], value), frame and string counting, and numpy.unique-style unique_counts semantics. Done means the supported scope and behavior are decided and covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.