Remove embedded blank lines from assistivetext field in published_images.csv - #32
Open
alwaysalearner1234 wants to merge 1 commit into
Open
Remove embedded blank lines from assistivetext field in published_images.csv#32alwaysalearner1234 wants to merge 1 commit into
alwaysalearner1234 wants to merge 1 commit into
Conversation
…images.csv
139 records had paragraph breaks (\n\n) embedded inside the quoted
assistivetext field, causing many CSV parsers to split records across
blank lines and report column-count errors.
Fix: replace every \n\n in assistivetext values with a single space.
No text content was altered; only the paragraph separator was collapsed.
Reported record: uuid=00671f8f-92aa-46cc-959b-3a7c5c7cd085
depictstmsobjectid=139738
Total records fixed: 139 / 129098
Column count before and after: 13 (unchanged)
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.
Fix
Replaced every
\n\nwithinassistivetextvalues with a single space,collapsing each affected record to a single physical CSV line.
"") was already correct — no changes needed thereScope
data/published_images.csv\n\nin fileValidation
Validated using Python's
csv.reader(RFC 4180 compliant) on the final file.All 129,098 rows parse to exactly 13 columns with no errors.
Fixes #28