Class: Statsample::CSV

Inherits:
Object show all
Defined in:
lib/statsample/converter/csv.rb

Class Method Summary collapse

Class Method Details

.read(filename, empty = [''], ignore_lines = 0, opts = {}) ⇒ Object

Return a DataFrom created from a csv file.

NOTE

This method has been DEPRECATED in favour of Daru::DataFrame.from_csv. Please switch to using that.

Raises:

  • (NoMethodError)


13
14
15
# File 'lib/statsample/converter/csv.rb', line 13

def read(filename, empty = [''], ignore_lines = 0, opts = {})
  raise NoMethodError, "Deprecated. Use Daru::DataFrame.from_csv instead."
end

.write(dataset, filename, convert_comma = false, opts = {}) ⇒ Object

Save a Dataset on a csv file.

NOTE

This method has BEEN DEPRECATED in favor of Daru::DataFrame#write_csv. Please use that instead.

Raises:

  • (NoMethodError)


23
24
25
# File 'lib/statsample/converter/csv.rb', line 23

def write(dataset, filename, convert_comma = false, opts = {})
  raise NoMethodError, "Deprecated. Use Daru::DataFrame#write_csv instead."
end