Skip to content

Conversation

davidosterberg
Copy link

I had an issue. Sometimes the 'expver' column does not exist in the data set.
In that case trying to drop the column would result in a crash.
This is fixed by passing errors='ignore' to the drop method.

@davidosterberg davidosterberg changed the title Don't crash if the column we try to drop doesn't exist ERA5: Don't crash if the column we try to drop doesn't exist Oct 17, 2024
@KonstantinChri KonstantinChri merged commit fddc1af into MET-OM:main Oct 18, 2024
7 checks passed
@davidosterberg davidosterberg deleted the fix-missing-variables-in-drop branch October 19, 2024 02:43
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.

2 participants