ENH: Add len() functionality to BarData.

This commit is contained in:
Thomas Wiecki
2013-12-03 16:29:17 -05:00
parent bbad5b386a
commit 5f4d8817e8
+3
View File
@@ -181,3 +181,6 @@ class BarData(object):
def items(self):
return self._data.items()
def __len__(self):
return len(self._data.keys())