google / timesketch

Collaborative forensic timeline analysis
Apache License 2.0
2.58k stars 589 forks source link

FutureWarning: pandas.read_csv arguments changed #2784

Closed jkppr closed 1 year ago

jkppr commented 1 year ago

While debugging the e2e tests I noticed this warning:

/usr/local/lib/python3.10/dist-packages/end_to_end_tests/interface.py:139: FutureWarning: The `error_bad_lines` argument has been deprecated and will be removed in a future version. Use on_bad_lines in the future.
  df = pd.read_csv(file_path, error_bad_lines=False)

Per pandas.read_csv documentation, on_bad_lines has three options: error, warn and skip. Based on my understanding of the code, the currently used error_bad_lines=False (and warn_bad_lines=True which is default) is the same as on_bad_lines="warn".