Skip to content

BUG: Read_Table and Read_Csv does not raise when delim_whitespace=True and sep=default is given #36583

Closed
@phofl

Description

@phofl
  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • (optional) I have confirmed this bug exists on the master branch of pandas.


Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.

Code Sample, a copy-pastable example

import io
f = io.StringIO("a  b  c\n1 -2 -3\n4  5   6")
df = pd.read_table(f, sep="\t", delim_whitespace=True)
df = pd.read_csv(f, sep=",", delim_whitespace=True)

Problem description

Both statement should raise a ValueError

Expected Output

ValueError

Must also edit docs. See #36560 for discussion.

cc @simonjayhawkins

Output of pd.show_versions()

master

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions