Handling nils in CSV's using Ruby

How to handle nils in CSV data Recently I’ve had to work a lot with CSV’s and I’ve learned the hard way that the data within these aren’t always what you expect. Why would there be no number associated to a name or part? Why no name for a number or part and so on. Below is the strategy I’ve adopted to handle this case. Fetching the data We want the headers to return as symbols because I don’t trust the position of the rows in the future....

May 3, 2020 · 2 min · 226 words · Me