Skip to content

Commit f0cb908

Browse files
Nick Pentreathwesm
Nick Pentreath
authored andcommitted
Remove sniff_sep from params; cleaner and simpler
1 parent 8eaa8f3 commit f0cb908

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/io/parsers.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from pandas.core.frame import DataFrame
1414

1515
def read_csv(filepath_or_buffer, sep=None, header=0, skiprows=None, index_col=0,
16-
na_values=None, date_parser=None, names=None, sniff_sep=True):
16+
na_values=None, date_parser=None, names=None):
1717
"""
1818
Read CSV file into DataFrame
1919
@@ -37,9 +37,6 @@ def read_csv(filepath_or_buffer, sep=None, header=0, skiprows=None, index_col=0,
3737
dateutil.parser
3838
names : array-like
3939
List of column names
40-
sniff_sep : boolean, default True
41-
Attempt to automatically determine the separator for the data. Defaults
42-
to True, however if sep is defined then it will take precedence
4340
4441
Returns
4542
-------
@@ -56,6 +53,7 @@ def read_csv(filepath_or_buffer, sep=None, header=0, skiprows=None, index_col=0,
5653
except Exception: # pragma: no cover
5754
f = open(filepath_or_buffer, 'r')
5855

56+
sniff_sep = True
5957
# default dialect
6058
dia = csv.excel
6159
if sep is not None:

0 commit comments

Comments
 (0)