Spaces:
Running
Running
Update SQL Console IFrame
#13
by
cfahlgren1
HF staff
- opened
Pendrokar
changed pull request status to
merged
@cfahlgren1
PR merged, I do want to ask one thing. Is it possible to hide null
values? As they are currently hidden with whitespaces within the CSV/TSV file. A hacky way.
IF("col" IS NOT NULL, "col", '')
for each selected column would have been an even more hacky way.
@cfahlgren1
I mean this:
https://huggingface.co/datasets/Pendrokar/null_values
No value was added to col3, so it shows null. It used to be the same for all empty cells in the above tables. So I left a single whitespace in each cell.
ahh I see! Since every column is a string, we can just use COALESCE
across all the columns. DuckDB makes this really easy with star expressions.
-- use column value or empty string for all columns in dataset
select COALESCE(columns(*), '') from train
You can see an example here and DuckDB Docs for it.