Skip to content

Conversation

@AvinashYerra
Copy link
Contributor

This PR fixes the #1418 to remove the deprecated pandas CSV reader args. Fixed by adding a variable for identifying the pandas version and updated the functions to add them into kwargs only the version is less than 2.0

Changes

  • Updated usage of deprecated pandas CSV parameters:
    • keep_date_col
    • verbose
    • delim_whitespace
  • Ensures compatibility with newer pandas versions (≥ 2.x).
  • Eliminates deprecation warnings observed.

How I tested this

  • Ran the test suite with pytest

Checklist

  • [Y] PR has an informative and human-readable title (this will be pulled into the release notes)
  • Changes are limited to a single goal (no scope creep)
  • Code passed the pre-commit check & code is left cleaner/nicer than when first encountered.
  • Any change in functionality is tested
  • New functions are documented (with a description, list of inputs, and expected output)
  • Placeholder code is flagged / future TODOs are captured in comments
  • Project documentation has been updated if adding/changing functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant