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

Raise ParserWarning not ParserError for Pandas > 1.3.5 #30

Merged
merged 2 commits into from
Mar 22, 2024

Commits on Mar 22, 2024

  1. Raise ParserWarning not ParserError for Pandas > 1.3.5

    Raise a ParserWarning to avoid the ParserError `pandas.errors.ParserError: Defining usecols with out-of-bounds indices is not allowed.` when using Pandas>1.3.5.  Now a warning is output for the problematic lines (which relate to comments in the JANAF data).
    
    Tested on an example txt file: https://janaf.nist.gov/tables/H-066.txt
    djbower committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    978495d View commit details
    Browse the repository at this point in the history
  2. Update Pandas version

    This is related to pull request adelq#30, which requires at least Pandas 1.3.0 for the `on_bad_lines` keyword argument to be available.
    
    See https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html
    djbower committed Mar 22, 2024
    Configuration menu
    Copy the full SHA
    f35dc37 View commit details
    Browse the repository at this point in the history