Class: Pandas::Index
- Inherits:
-
Object
- Object
- Pandas::Index
- Defined in:
- lib/pandas/index.rb
Instance Method Summary collapse
- #length ⇒ Object
- #monotonic? ⇒ Boolean
- #monotonic_decreasing? ⇒ Boolean
- #monotonic_increasing? ⇒ Boolean
- #to_a ⇒ Object
- #unique? ⇒ Boolean
Instance Method Details
#length ⇒ Object
21 22 23 |
# File 'lib/pandas/index.rb', line 21 def length size end |
#monotonic? ⇒ Boolean
5 6 7 |
# File 'lib/pandas/index.rb', line 5 def monotonic? is_monotonic end |
#monotonic_decreasing? ⇒ Boolean
9 10 11 |
# File 'lib/pandas/index.rb', line 9 def monotonic_decreasing? is_monotonic_decreasing end |
#monotonic_increasing? ⇒ Boolean
13 14 15 |
# File 'lib/pandas/index.rb', line 13 def monotonic_increasing? is_monotonic_increasing end |
#to_a ⇒ Object
25 26 27 |
# File 'lib/pandas/index.rb', line 25 def to_a Array.new(length) {|i| self[i] } end |
#unique? ⇒ Boolean
17 18 19 |
# File 'lib/pandas/index.rb', line 17 def unique? is_unique end |