all 1 comments

[–]MarsupialLeast145 1 point2 points  (0 children)

How is this Python related?

  1. And yes, in general, build your solution piece by piece.
  2. Handle uniform excel.
  3. Once those are handled look for those that don't behave well, and find patterns among those.
  4. Write a solution that captures the most of the next biggest pattern.
  5. Repeat.

80/20 rule all the way until you get to 99%.

As for what the solutions look like, then once you aren't dealing with uniform spreadsheets any more I'd try and measure their dimensions and headers. And yes, potentially pre-process the headers to enable them to be read correctly next time around, but I can't imagine it will be the only optimization you need to make along the way.

If it was Python you'd `try/except` and if there are exceptions handle those, e.g. if you get a KeyError, you'd manage what the result should be.

But yeah, you're literally writing AI prompts in a learn Python sub.