lib/data_frame.rb in davidrichards-data_frame-0.0.9 vs lib/data_frame.rb in davidrichards-data_frame-0.0.10
- old
+ new
@@ -36,10 +36,10 @@
# this method:
# FasterCSV::Converters[:special] = lambda{|f| f == 'foo' ? 'bar' : 'foo'}
# DataFrame.from_csv('http://example.com/my_special_url.csv', :converters => :special)
# This returns bar where 'foo' was found and 'foo' everywhere else.
def from_csv(obj, opts={})
- labels, table = infer_csv_contents(obj)
+ labels, table = infer_csv_contents(obj, opts)
return nil unless labels and table
df = new(*labels)
df.import(table)
df
end
\ No newline at end of file