:wave: Hello Daft community! :daft:If anyone is it...
# daft-dev
m
👋 Hello Daft community! daftIf anyone is itching to hack on Daft, here are a slew of great first issues to dive into! typingcat We're happy to help contributors with design reviews and discussions on Slack S and Github Issues G Add support for Series[start:end] (4771) Summary: Request to add
__getitem__
slicing on Series so
series[start:end]
works like in other dataframe libraries What needs to be done: Implement Series slicing (including negative indices/step handling) in the Python API and execution layer; add tests and documentation. Expression.var Summary: Add
var()
to the Expression API (ideally with a
ddof
parameter) to improve Narwhals support. What needs to be done: Implement
Expression.var(ddof=…)
with the appropriate aggregation kernel, cover numeric types, and add docs and unit tests. Expression.pow Summary: Add exponentiation support, e.g.,
daft.col("a").pow(2)
or
daft.col("a") ** 2
, for Narwhals compatibility. What needs to be done: Implement the power operation (scalar and column exponents), ensure type promotion/null-handling, and add examples/tests and docs. Expression.product Summary: Introduce a product aggregation (e.g.,
daft.col("a").product()
) to multiply values across rows/groups; also related to Narwhals. What needs to be done: Add the product aggregation kernel, handle overflow/NaN behavior, add tests across numeric dtypes, and document the API. `ddof` argument to `stddev` Summary: Add a
ddof
parameter to
stddev
for NumPy/pandas-style semantics (useful in window/`over` contexts) What needs to be done: Update the aggregation to use
N - ddof
where appropriate, verify behavior vs. reference libraries, and add tests and docs. Support for `SHOW TABLES LIKE ...`for MemoryCatalog Summary: MemoryCatalog currently doesn’t support
SHOW TABLES LIKE pattern
. What needs to be done: Implement LIKE-pattern filtering (including wildcards/escaping) in the MemoryCatalog, add parser logic, tests, and documentation. Hash rows of dataframe Summary: Add a simple way to compute a stable hash per row (e.g.,
df.with_column("hash", daft.functions.hash("*"))
) for de-duplication/fingerprinting. What needs to be done: Expose a row-hashing API backed by existing kernels; ensure consistent behavior across types/nulls, and add tests and docs. sql: bad error message if trying to read from a table called 'table' Summary: Reading from a DataFrame named
table
via
daft.sql
raises a misleading parse error; the message should explain that
table
is not a valid identifier. What needs to be done: Improve error handling and messaging around reserved identifiers; add a regression test for
table
as a name. `df.show` max_width does not work without manually setting the `format` option as well Summary:
show(max_width=…)
has no effect unless
format="fancy"
is also set; users expect width to be respected by default What needs to be done: Fix display-width handling in the preview logic so
max_width
works without `format`; add unit tests and update docs/help text. Missing docstring items for Expression page of API Docs Summary: Docs maintenance task: a number of Expression functions lack proper docstring sections (parameters/returns/examples). What needs to be done: Fill in missing docstrings across the listed functions, build the docs to verify rendering, and submit the updates.
❤️ 8