Skip to content

Commit

Permalink
Add pending deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkyle committed Nov 16, 2023
1 parent a50e0c0 commit 7290f7e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eland/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1302,7 +1302,7 @@ def to_csv(
compression="infer",
quoting=None,
quotechar='"',
line_terminator=None, # maybe add a deprecation warning for this one
line_terminator=None,
lineterminator=None,
chunksize=None,
tupleize_cols=None,
Expand All @@ -1318,6 +1318,13 @@ def to_csv(
--------
:pandas_api_docs:`pandas.DataFrame.to_csv`
"""
if line_terminator:
warnings.warn(
"The line_terminator argument will be replaced by lineterminator",
PendingDeprecationWarning,
stacklevel=2,
)

kwargs = {
"path_or_buf": path_or_buf,
"sep": sep,
Expand Down

0 comments on commit 7290f7e

Please sign in to comment.