R
Ronald Steckly
[Note: parts of this message were removed to make it a legal post.]
Hi,
So maybe I spoke too soon when I said I had the csv part of this handled.
I've read the FasterCSV docs and, for the life of me, can't figure out how
to return values by header. Here's the script:
require 'rubygems'
require 'fastercsv'
a=FasterCSV.table("\/Users\/ron\/snlusgam.csv").by_col
b=a.['header_name']
puts b
I know this isn't right, but I can't seem to find in the documentation how
to return an array of values from a particular column header.
Has anybody done this?
Thanks,
Ron
Hi,
So maybe I spoke too soon when I said I had the csv part of this handled.
I've read the FasterCSV docs and, for the life of me, can't figure out how
to return values by header. Here's the script:
require 'rubygems'
require 'fastercsv'
a=FasterCSV.table("\/Users\/ron\/snlusgam.csv").by_col
b=a.['header_name']
puts b
I know this isn't right, but I can't seem to find in the documentation how
to return an array of values from a particular column header.
Has anybody done this?
Thanks,
Ron