[BUG] RuntimeError when empty dataframe is being written to csv file #6691
Labels
bug
Something isn't working
cuIO
cuIO issue
good first issue
Good for newcomers
libcudf
Affects libcudf (C++/CUDA) code.
Describe the bug
When there is an empty dataframe and we write the dataframe to csv(with
index=False
), we shouldn't be throwing an error but should be returning a new line as pandas does.Steps/Code to reproduce bug
Follow this guide http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports to craft a minimal bug report. This helps us reproduce the issue you're having and resolve the issue more quickly.
Expected behavior
Return a new-line similar to pandas.
Environment overview (please complete the following information)
Environment details
Please run and paste the output of the
cudf/print_env.sh
script here, to gather any other relevant environment detailsClick here to see environment details
Additional context
Surfaced while running fuzz tests: #6001
The text was updated successfully, but these errors were encountered: