I have problem with interpretation this json describing some table in Web Table Corpus 2015:
```{"relation":[["a","40","41","42","","","","","","","","","","","","","",""],["b","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56"],["def submit_row(context):","\u0027show_save\u0027: True","}","submit_row \u003d register.inclusion_tag(\u0027admin/submit_line.html\u0027, takes_context\u003dTrue)(submit_row)","","def cell_count(inline_admin_form):","\"\"\" Returns the number of cells used in a tabular inline \"\"\"","count \u003d 1 # Hidden cell with hidden \u0027id\u0027 field","for fieldset in inline_admin_form:","# Loop through all the fields (one per cell)","for line in fieldset:","for field in line:","count +\u003d 1","if inline_admin_form.formset.can_delete:","# Delete checkbox","count +\u003d 1","return count","cell_count \u003d register.filter(cell_count)"]],"pageTitle":"13510_tabular_inline_errors_colspan.diff on Ticket #13510 – Attachment – Django","title":"","url":"
https://code.djangoproject.com/attachment/ticket/13510/13510_tabular_inline_errors_colspan.diff","hasHeader":true,"headerPosition":"FIRST_COLUMN","tableType":"RELATION","tableNum":2,"s3Link":"common-crawl/crawl-data/CC-MAIN-2015-32/segments/1438044271733.81/warc/CC-MAIN-20150728004431-00342-ip-10-236-191-2.ec2.internal.warc.gz","recordEndOffset":857818123,"recordOffset":857809929,"tableOrientation":"VERTICAL","TableContextTimeStampAfterTable":"{24719\u003d© 2005-2015 Django Software Foundation unless otherwise noted. Django is a registered trademark of the Django Software Foundation.}","textBeforeTable":"index a5b1a89..7f6c34a 100644 django/contrib/admin/templates/admin/edit_inline/tabular.html diff --git a/django/contrib/admin/templates/admin/edit_inline/tabular.html b/django/contrib/admin/templates/admin/edit_inline/tabular.html File 13510_tabular_inline_errors_colspan.diff, 5.0 KB (added by julien, 4 years ago) Ticket #13510: 13510_tabular_inline_errors_colspan.diff Back to Ticket #13510 Context Navigation Search Wiki Timeline Reports View Tickets API Preferences DjangoProject Login GitHub Login Code ♥ Donate About Code Community News Documentation Download Overview The web framework for perfectionists with deadlines. Django","textAfterTable":"a b def submit_row(context): 40 40 \u0027show_save\u0027: True 41 41 } 42 42 submit_row \u003d register.inclusion_tag(\u0027admin/submit_line.html\u0027, takes_context\u003dTrue)(submit_row) 43 44 def cell_count(inline_admin_form): 45 \"\"\" Returns the number of cells used in a tabular inline \"\"\" 46 count \u003d 1 # Hidden cell with hidden \u0027id\u0027 field 47 for fieldset in inline_admin_form: 48 # Loop through all the fields (one per cell) 49 for line in fieldset: 50 for field in line: 51 count +\u003d 1 52 if inline_admin_form.formset.can_delete: 53 # Delete checkbox 54 count +\u003d 1 55 return count 56 cell_count \u003d register.filter(cell_count) tests/regressiontests/admin_inlines/models.py diff --git a/tests/regressiontests/admin_inlines/models.py b/tests/regressiontests/admin_inlines/models.py index 4e5c4e3..772152a 100644","hasKeyColumn":true,"keyColumnIndex":7,"headerRowIndex":0}```
There is stated `"keyColumnIndex":7`, but the table has only 3 columns. This confuses me a lot. My hypothesis is that in
vertical tables notion of "headers" and "key columns" may be counterintuitive: headers are in fact columns and key columns are rows. It would explain why this json states about at least 8 columns while there are only 3.
Am I right? Or is there some other explanation?
Many Thanks,
Michał