Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several documentation and implementation improvements to the
soildbpackage, primarily focused on enhancing theSDAResponseclass's documentation and error handling for data conversion methods. The changes improves dealing with empty or malformed data.Documentation enhancements
SDAResponsedocumentation to include new attributes and methods for data validation, error recovery, and fallback logic, such asdata_quality_score,has_warnings,is_valid,validation_result, and validation-related methods.find_fallback_columns,get_validation_summary,handle_missing_fields,recover_partial_data, and several validation routines, clarifying their usage and return values. [1] [2]to_dictto indicate it now includes error recovery during conversion.Data conversion and error handling improvements
to_dataframefor both pandas and polars backends to correctly handle cases where the data is empty, ensuring that empty DataFrames are created with the correct columns/schema. [1] [2]to_soilprofilecollectionto move the empty DataFrame handling after required column validation, and clarified that depth validation is skipped if there are no rows, improving error messaging and robustness. [1] [2]Version update
0.3.0.dev0to0.3.0inpyproject.toml, marking a new release.