csvs-to-sqlite icon indicating copy to clipboard operation
csvs-to-sqlite copied to clipboard

Replace deprecated argument `error_bad_lines` and method `iteritems()` for pandas

Open LuighiV opened this issue 2 years ago • 5 comments

With new pandas version 2.0.0, the argument and method were removed, retrieving an error.

Reference: https://pandas.pydata.org/docs/whatsnew/v2.0.0.html#removal-of-prior-version-deprecations-changes

closes https://github.com/simonw/csvs-to-sqlite/issues/88 closes https://github.com/simonw/csvs-to-sqlite/issues/93

LuighiV avatar Apr 06 '23 03:04 LuighiV

@simonw it would be great to get this pulled in.

fgregg avatar Apr 09 '23 13:04 fgregg

If you need to work with csvs-to-sqlite before this PR gets merged

pip install --force-reinstall "pandas~=1.0"

taniki avatar Apr 21 '23 14:04 taniki

@simonw Anything more you need before merging this request?

chrismp avatar Sep 13 '23 20:09 chrismp

@LuighiV You should try a pull request with the csvs-update-sqlite repo: https://github.com/dkaoster/csvs-update-sqlite. It is updated more often. Selfishly, I would like to see your pull request incorporated in that repo because I've switched to using csvs-update-sqlite!

chrismp avatar Sep 19 '23 17:09 chrismp

OK, let's fix this!

simonw avatar Mar 11 '24 15:03 simonw