NVIDIA / NVIDIA/cudf

[BUG]: cudf.read_csv(comment=#) still including commented line

Open
#13,856 1 comment 0 reactions 0 assignees View on GitHub
0 - Backlog bug cuIO libcudf Python
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

Description

**Describe the bug**
cudf.read_csv(comment=#) still includes the commented line

**Steps/Code to reproduce bug**
```
In [58]: import cudf

In [59]: cudf.__version__
Out[59]: '23.10.00'

In [60]: from io import StringIO

In [61]: data = "\na,b,c\n \n# commented line\n1,2,3\n\n4,5,6"

In [62]: cudf.read_csv(StringIO(data), comment="#")
Out[62]:
a b c
0 0 # commented line
1 1 2 3
2 4 5 6
```

**Expected behavior**
```
In [63]: import pandas

In [64]: pandas.read_csv(StringIO(data), comment="#")
Out[64]:
a b c
0 1 2 3
1 4 5 6
```

**Environment overview (please complete the following information)**
- Environment location: Bare-metal
- Method of cuDF install: conda
- If method of install is [Docker], provide `docker pull` & `docker run` commands used

**Environment details**
Please run and paste the output of the `cudf/print_env.sh` script here, to gather any other relevant environment details

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.