描述
Is your feature request related to a problem? Please describe.
In the real world it is quite common to have spreadsheets which have non-unique column headers (often the case when the sheet is intended to be used by people rather than code). There are also cases when column headers might be missing, even if there are available data in the columns.
Currently these wouldn't work when running get_all_records (e.g before passing data into a Pandas DataFrame), as the tool expects unique headers in general, and expects unique headers even when the expectations are passed in.
Describe the solution you'd like
The Pandas' read_excel tool handles these cases, and does a reasonable job with it.
- if encounters a column with the same name it already had (going from left to right), a counter is attached (e.g. a column called
Duplicateat the first encounter, on subsequent ones it isDuplicate.1,Duplicate.2... - if encountering a header without a value, Pandas calls it
Unnamed: 0,Unnamed: 1, ... so there's always a column name that can be used (and likely renamed)
Something similar for the two types of disambiguation could be useful.
Describe alternatives you've considered
I've considered using manually rolled worksheet.col_values(...) to get the individual columns and manipulate them as needed, rather than using get_all_records, though this would be a lot of manual shuffling.
Additional context
Happy to potentially contribute.