What is the difference between
delimiter attributes in
Also what is the situation when I would choose one over the other?
In documentation I read something about Python builtin sniffer tool, also in delimiter, it says <em>alternative argument name for sep</em>, then why cant we have only one attribute?Answer1:
Confirmation that they are the same thing can be found in the <a href="https://github.com/pandas-dev/pandas/blob/master/pandas/io/parsers.py" rel="nofollow">source code</a>:
# Alias sep -> delimiter. if delimiter is None: delimiter = sep
I agree with the other answer that it is best to stick to
sep. It seems to be more commonly used, and it is more consistent with other functions such as <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_csv.html" rel="nofollow">
to_csv</a>, which does not accept
They're the same thing. See <a href="https://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html" rel="nofollow">here</a>.
I assume one is for backwards compatibility. I'd just use
sep, it's what I see the most.