Module: Daru::DataFrame::SetSingleIndexStrategy

Defined in:
lib/daru/dataframe.rb

Class Method Summary collapse

Class Method Details

.delete_vector(df, col) ⇒ Object



1558
1559
1560
# File 'lib/daru/dataframe.rb', line 1558

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

.new_index(df, col) ⇒ Object



1554
1555
1556
# File 'lib/daru/dataframe.rb', line 1554

def self.new_index(df, col)
  Daru::Index.new(df[col].to_a)
end

.uniq_size(df, col) ⇒ Object



1550
1551
1552
# File 'lib/daru/dataframe.rb', line 1550

def self.uniq_size(df, col)
  df[col].uniq.size
end