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

Bugfix on backward compatibility of pandas #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hanne-opseth-rygg-4ss
Copy link
Contributor

@hanne-opseth-rygg-4ss hanne-opseth-rygg-4ss commented Feb 5, 2024

This PR is related to user story ESS-2347

Description

date_format in pd.read_csv is functionality that is implemented in pandas 2. When using pd.read_csv without date_format you get a UserWarning. This is handled with a try/except statement. With time, when the program does not support pandas < 2, this should be deleted.

The change is tested in this program where is where the problem was first found.

Checklist

  • PR title is descriptive and fit for injection into release notes (see tips below)
  • Correct label(s) are used

PR title tips:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug fixes
Development

Successfully merging this pull request may close these issues.

1 participant