Handle Duplicate Entries in get_df_parts_ Function and Update Documentation#14
Open
Sadiyahafroz wants to merge 2 commits intobreimanntools:masterfrom
Open
Handle Duplicate Entries in get_df_parts_ Function and Update Documentation#14Sadiyahafroz wants to merge 2 commits intobreimanntools:masterfrom
Sadiyahafroz wants to merge 2 commits intobreimanntools:masterfrom
Conversation
…get_df_parts Updated the get_df_parts function in utils_feature.py to handle duplicate entries in the COL_ENTRY column. If duplicates are found, a serial number (S.No) is added to the COL_ENTRY values to ensure uniqueness before indexing. This prevents errors and ensures smooth processing of sequence parts without data loss, while maintaining the original behavior if no duplicates are present.
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 updates the get_df_parts_ function to handle duplicate entries in the COL_ENTRY column. A new parameter handle_duplicates is introduced, allowing the user to specify how duplicates should be handled (either adding serial numbers or leaving them unchanged). If the parameter is not provided, duplicates will be handled by default with serial numbers to ensure unique indexing. Additionally, minor updates were made to the tutorial for clarity.