Class: Pandas::Index

Inherits:
Object
  • Object
show all
Defined in:
lib/pandas/index.rb

Instance Method Summary collapse

Instance Method Details

#lengthObject



21
22
23
# File 'lib/pandas/index.rb', line 21

def length
  size
end

#monotonic?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/pandas/index.rb', line 5

def monotonic?
  is_monotonic
end

#monotonic_decreasing?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/pandas/index.rb', line 9

def monotonic_decreasing?
  is_monotonic_decreasing
end

#monotonic_increasing?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/pandas/index.rb', line 13

def monotonic_increasing?
  is_monotonic_increasing
end

#to_aObject



25
26
27
# File 'lib/pandas/index.rb', line 25

def to_a
  Array.new(length) {|i| self[i] }
end

#unique?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/pandas/index.rb', line 17

def unique?
  is_unique
end