Have an array split in columns

When you “import-csv” a CSV file of say 3 columns you get a nice array that detects the columns and it becomes even better when you use headers in your CSV file. You get a clean object to work with.

How do you do this with an array you create yourself?

Say I have collected some information in an array. What should I do to obtain the same type of object like I would get from an CSV import?

submitted by /u/SmellMyPPKK
[link] [comments]

Leave a Reply