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

Explicitly use mixed format when converting to dates, avoiding warning #5417

Merged
merged 1 commit into from
May 15, 2023

Conversation

berland
Copy link
Contributor

@berland berland commented May 15, 2023

Using mixed parsing seems safest for now. In the poly-case, a warning will be emitted (because inferral of the format does not work when everything is non-dates) unless this option is set

Issue
Resolves #5416

Approach
Set the option

Pre review checklist

  • Added appropriate release note label
  • PR title captures the intent of the changes, and is fitting for release notes.
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Updated documentation
  • Ensured new behaviour is tested

Adding labels helps the maintainers when writing release notes. This is the list of release note labels.

Using mixed parsing seems safest for now. In the poly-case, a warning will be emitted
(because inferral of the format does not work when everything is non-dates) unless
this option is set
@berland berland added the release-notes:maintenance Automatically categorise as maintenance change in release notes label May 15, 2023
@berland berland changed the title Explicitly use mixed format when converting to dates Explicitly use mixed format when converting to dates, avoiding warning May 15, 2023
@berland
Copy link
Contributor Author

berland commented May 15, 2023

@berland berland self-assigned this May 15, 2023
@berland
Copy link
Contributor Author

berland commented May 15, 2023

Tested 'Create plot' both in poly-example (no dates) and in the snake-oil example (has dates). Everything looks fine.

Copy link
Contributor

@xjules xjules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@berland berland merged commit 1d73cc3 into equinor:main May 15, 2023
30 of 32 checks passed
@xjules xjules deleted the fix_dateparsing_warning branch May 15, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:maintenance Automatically categorise as maintenance change in release notes
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Warning from pandas: Could not infer format
2 participants