-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mirror pandas' to_csv lineterminator instead of line_terminator #595
Conversation
(even though it looks a little weird perhaps)
This reverts commit 8b9ab56.
I think this one is safe to merge. @pquentin Can we run the test suite? |
buildkite test this please |
I'm sorry about the subpar contributing experience, and the lack of reviews. What worries me a bit here is that any code that has been using @davidkyle Is that a concern? |
The Pandas docs (v2.1.1) indicate the parameter should be https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_csv.html However Pandas 1.4 uses https://pandas.pydata.org/pandas-docs/version/1.4/reference/api/pandas.DataFrame.to_csv.html So this is a fix and is required but let's merge it with the change to upgrade Pandas to 2.0 but not beforehand as it could break users with Pandas 1.4. Also there is no need to rename the Eland parameter, we can just change the parameter sent to Pandas that way we don't break users of the Eland API. |
@bartbroere echoing what @pquentin said thank you for all of your contributions and I'm also sorry the review process is not as fast as we would like. An extra thank you for you patience |
@pquentin @davidkyle Thanks for the review, and no worries if it takes some time. About the review:
So if we don't change the parameter (but do change how it's passed to pandas), we could merge a part of this change now already, and maybe rename the parameter with a breaking release of eland? I'll push that commit now to see if you agree. |
buildkite test this please |
buildkite test this please |
buildkite test this please |
@bartbroere I pushed a change adding the deprecation warning in 7290f7e |
buildkite test this please |
Thanks! I was a bit hesitant to add this myself, since I can't really decide that. |
buildkite test this please |
Let's mirror pandas' convention, even though it looks a little weird perhaps.
I believe the argument
line_terminator
is now ignored when it eventually ends up in theto_csv
method ofpandas
as akwarg
, so I would classify this PR as a bugfix.