Mehdi Zhiri
04/26/2024, 3:11 PMreturn_dtype
of the function (I tried Union[...]
but it does not work)jay
04/26/2024, 4:41 PMMehdi Zhiri
04/26/2024, 5:17 PMjay
04/26/2024, 5:18 PMMehdi Zhiri
04/26/2024, 6:32 PMjay
04/26/2024, 6:34 PMjay
04/26/2024, 6:35 PMMehdi Zhiri
04/26/2024, 6:36 PMddf = daft.from_pandas(pd.DataFrame([[json.dumps(["42","45"])]], columns=["Test"]))
ddf.select(ddf["Test"].cast(daft.DataType.list(daft.DataType.string()))).collect()
Mehdi Zhiri
04/26/2024, 6:37 PMimport pandas as pd
import daft
import json
Mehdi Zhiri
04/26/2024, 6:40 PMMehdi Zhiri
04/26/2024, 6:41 PMjay
04/26/2024, 6:42 PMlist(“[1, ‘x’]”)
you actually get a list of the characters rather than a list of valuesMehdi Zhiri
04/26/2024, 6:42 PMjay
04/26/2024, 6:42 PMMehdi Zhiri
04/26/2024, 6:43 PMjay
04/26/2024, 6:43 PMjay
04/26/2024, 6:43 PMjay
04/26/2024, 6:43 PMMehdi Zhiri
04/26/2024, 6:44 PMjay
04/26/2024, 6:44 PM