Module: Rover

Defined in:
lib/rover.rb,
lib/rover/group.rb,
lib/rover/vector.rb,
lib/rover/version.rb,
lib/rover/data_frame.rb

Defined Under Namespace

Classes: DataFrame, Group, Vector

Constant Summary collapse

VERSION =
"0.4.1"

Class Method Summary collapse

Class Method Details

.parse_csv(str, **options) ⇒ Object



18
19
20
21
22
# File 'lib/rover.rb', line 18

def parse_csv(str, **options)
  csv_to_df(**options) do |csv_options|
    CSV.parse(str, **csv_options)
  end
end

.parse_parquet(str, **options) ⇒ Object



30
31
32
33
34
# File 'lib/rover.rb', line 30

def parse_parquet(str, **options)
  parquet_to_df(**options) do
    Arrow::Table.load(Arrow::Buffer.new(str), format: :parquet)
  end
end

.read_csv(path, **options) ⇒ Object



12
13
14
15
16
# File 'lib/rover.rb', line 12

def read_csv(path, **options)
  csv_to_df(**options) do |csv_options|
    CSV.read(path, **csv_options)
  end
end

.read_parquet(path, **options) ⇒ Object



24
25
26
27
28
# File 'lib/rover.rb', line 24

def read_parquet(path, **options)
  parquet_to_df(**options) do
    Arrow::Table.load(path)
  end
end