DAE see `pytest --doctest-modules --continue-on-co...
# daft-dev
d
DAE see
pytest --doctest-modules --continue-on-collection-errors daft/dataframe/dataframe.py daft/expressions/expressions.py daft/convert.py daft/udf.py
fail on
main
? It's failing locally for me, and occasionally on CI. But the diffs are non human visible. For example:
Copy code
/Users/desmond/Daft/daft/udf.py:402: DocTestFailure
____________________________________________________________________________ [doctest] daft.udf.udf _____________________________________________________________________________
468 
469     Example:
470         >>> import daft
471         >>> @daft.udf(return_dtype=daft.DataType.int64())
472         ... def add_constant(x: daft.Series, c=10):
473         ...     return [v + c for v in x.to_pylist()]
474         >>>
475         >>> df = daft.from_pydict({"x": [1, 2, 3]})
476         >>> df = df.with_column("new_x", add_constant(df["x"], c=20))
477         >>> df.show()
Differences (unified diff with -expected +actual):
    @@ -1,6 +1,6 @@
     ╭───────┬───────╮
    -│ x     ┆ new_x │
    -│ ---   ┆ ---   │
    -│ Int64 ┆ Int64 │
    +│ x     ┆ new_x │
    +│ ---   ┆ ---   │
    +│ Int64 ┆ Int64 │
     ╞═══════╪═══════╡
     │ 1     ┆ 21    │
c
Yes when running local you need DAFT_BOLD_TABLE_HEADERS: '0'
d
Ah gotcha