-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
error_bad_lines argument has been deprecated #88
Comments
Hi,
It would be great if it can be updated. |
From the pandas release notes for the latest version (April, 3 2023)
https://pandas.pydata.org/docs/whatsnew/v2.0.0.html#removal-of-prior-version-deprecations-changes |
Seeing this error in 1.3 now. A workaround is to temporarily roll back pandas: |
Also having this issue. Crazy that it's almost a year now! Maybe nobody is using |
Yep, that did it. |
this worked for me too! pip3 install 'pandas==1.4.0'
# git clone from this repo and cd to that directory
pip3 install -e . |
Using 'csvs-to-sqlite' leads to the following error Could not load collection.csv: read_csv() got an unexpected keyword argument 'error_bad_lines' This is because 'error_bad_lines' is replaced by 'on_bad_lines' in a newer version of Pandas [1]. However, the bug report in 'csvs-to-sqlite' is still open [2]. Therefore, use the newer and more maintained 'sqlite-utils' instead. Link: https://stackoverflow.com/a/76503893 [1] Link: simonw/csvs-to-sqlite#88 [2] Signed-off-by: Stefan Kühnel <[email protected]>
Asked myself the same, but the tool has hundreds of downloads each WEEK! Looks like lots of people try it out and then give up as it doesnt work out of the box. |
@panique Or we're just using it every day and don't see a need to mention it. It's just another tool in the toolbox, like |
If you've been using it all along and you haven't updated pandas, you won't see the issue -- this is a problem that occurs if you do a fresh install. I'm working around it by just using sqlite-utils:
is functionally identical to:
#69 seems relevant here. |
If anyone's struggling with csvs-to-sqlite, this set of requirements works: (Did this with py 3.9.6) |
pipx user fixer
|
I get a deprecation warning on the latest stable.
The text was updated successfully, but these errors were encountered: