lib/data_frame.rb in davidrichards-data_frame-0.0.10 vs lib/data_frame.rb in davidrichards-data_frame-0.0.11
- old
+ new
@@ -118,10 +118,12 @@
cont[@labels[i]] = col
i += 1
cont
end
end
+ alias :to_hash :columns
+ alias :to_dictionary :columns
def render_row(sym)
i = self.row_labels.index(sym)
return nil unless i
@items[i]
@@ -146,7 +148,7 @@
item.delete_at(i)
end
self.labels.delete_at(i)
true
end
-
+
end
\ No newline at end of file