You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then, we called function get_all_records(head=2), it will return 1 row but keys of the row is not correct.
output: [{value1:value4, value2:value5, value3:value6}]
In my understanding of documentation for code it is works as it supposes to work.
"""Returns a list of dictionaries, all of them having the contents of
the spreadsheet with the head row as keys and each of these
dictionaries holding the contents of subsequent rows of cells as
values.
”””
What @grkamarnath you are talking about is to skip 1rst row, which logically not a head.
”:param int head: (optional) Determines which row to use as keys,
starting from 1 following the numeration of the spreadsheet.”
Suppose i have a google sheet with 3 rows like shown below.
Header1 Header2 Header3
value1 value2 value3
value4 value5 value6
then, we called function get_all_records(head=2), it will return 1 row but keys of the row is not correct.
output: [{value1:value4, value2:value5, value3:value6}]
Expected/Correct output: [{Header1:value4, Header2:value5, Header3:value6}]
The text was updated successfully, but these errors were encountered: