Repair an import that loses meaning

A materials laboratory defines 0031 and 31 as distinct part identifiers. A comma-delimited source file has the following contents:


PartID

Extension_mm

0031

0.00

31

NA

0032

0.80


The extension values are in mm. NA means that no reading was recorded, while 0.00 is a genuine measured zero.


An import pipeline reads PartID as double, converts those numeric IDs to strings, and replaces missing extension values with zero. The original file remains available. Which repair preserves both distinctions required by the source?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Data Files and Character Strings Questions: