Airtable | TPS | Determine Columns

Anonymous User
769
Aug 03, 2023

You're given data thats sorted into columns. Return the data structure of each column based on the content.

data = [
    ["Name",                        "Approved by external auditor", "Status",     "Estimated hours"],
    ["Summer-inspired bites",       "",                             "checked",    ""               ],
    ["Poolside views",              "",                             "editing",    "5"              ],
    ["11 summer beach looks",       "",                             "editing",    ""               ],
    ["Mt. Kilimanjaro adventure",   "checked",                      "staging",    "4"              ],
  ]

return

['text','checkbox','text',integer']

Failed miserably on this even though the content isnt even difficult. Struggled with how to compile an entire column into a single 'type' determination for the output.

Someone please spoil my life and give me the solution that took you 3 minutes.

Comments (2)