âãåé¡ï¼ãâ data.csvãã¡ã¤ã«ã«ã¯ãï¼äººã®ãã¬ã¤ã¤ã¼ï¼Alice, Bob, Jimmy, Kent, Rossï¼ãäºç¨®é¡ã®ã²ã¼ã ï¼gameA, gameBï¼ããã¬ã¤ããçµæã次ã®ãããªå½¢ã§æ ¼ç´ããã¦ãããåã²ã¼ã ã®å¹³åç¹ãæ±ããã data.csv player,gameA,gameB Alice,84.0,79.5 Bob,20.0,56.5 Jimmy,80.0,31.0 Kent,90.5,15.5 Ross,68.0,33.0 data = File.read('data.csv') headers, *scores = data.lines.map { |line| line.chomp.split(',') } scores # => [["Alice", "84.0", "79.5"], ["Bob", "20.0", "56.5"], ["Jimmy", "80
{{#tags}}- {{label}}
{{/tags}}