Skip to content
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

Incompatibility with newer pandas versions #27

Open
khelfer opened this issue Aug 11, 2023 · 0 comments
Open

Incompatibility with newer pandas versions #27

khelfer opened this issue Aug 11, 2023 · 0 comments

Comments

@khelfer
Copy link

khelfer commented Aug 11, 2023

In pandas 1.5, the parameter line_terminator of the to_csv function was renamed to lineterminator (see here). This seems to break bcpy as the following error message shows:

  File "...\bcpy\data_objects.py", line 315, in to_sql
    self._df.to_csv(
TypeError: NDFrame.to_csv() got an unexpected keyword argument 'line_terminator'

Using pandas 1.4.4 (or 1.5.3 if you don't mind the FutureWarning) is a workaround, but it would be great if current versions (2.0+) of pandas could be supported too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant