Best Matrix data structure / file for reading in Ruby on Rails? Json Yaml? Xml

I select the optimal data file / source / database to store the matrix, initially from a spreadsheet. The current spreadsheet table is as follows:

    A1 A2 A3 A4
B1  1  2  3  4
B2  3  2  3  4
B3  2  3  1  3

My goal is to easily get data from the matrix. The column and row headers act as a pointer to the actual data in the matrix.

I am considering json, yaml ... but it is so much work to create hashes with two pointers to each number in the matrix.

Any suggestions?

+4
source share
1 answer
0

Source: https://habr.com/ru/post/1608758/