Module: DaruLite::DataFrame::SetCategoricalIndexStrategy

Defined in:
lib/daru_lite/dataframe.rb

Class Method Summary collapse

Class Method Details

.delete_vector(df, col) ⇒ Object



1524
1525
1526
# File 'lib/daru_lite/dataframe.rb', line 1524

def self.delete_vector(df, col)
  df.delete_vector(col)
end

.new_index(df, col) ⇒ Object



1520
1521
1522
# File 'lib/daru_lite/dataframe.rb', line 1520

def self.new_index(df, col)
  DaruLite::CategoricalIndex.new(df[col].to_a)
end