Skip to content

Commit fcd5b9c

Browse files
committed
Replace deprecated argument error_bad_lines for pandas
With new pandas version 2.0.0, the argument was removed, retrieving an error. Reference: https://pandas.pydata.org/docs/whatsnew/v2.0.0.html#removal-of-prior-version-deprecations-changes
1 parent 1a7a9df commit fcd5b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csvs_to_sqlite/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def load_csv(
3939
filepath,
4040
sep=separator,
4141
quoting=quoting,
42-
error_bad_lines=not skip_errors,
42+
on_bad_lines='skip' if skip_errors else 'error',
4343
low_memory=True,
4444
encoding=encoding,
4545
usecols=usecols,

0 commit comments

Comments
 (0)