ENH: Adds table_len method to BcolzMinuteBarReader (#1436)

To get the length of the underlying table for a given sid.
This commit is contained in:
Andrew Daniels
2016-08-29 15:07:08 -04:00
committed by GitHub
parent 50e175bad2
commit 60c485c1ed
+4
View File
@@ -1008,6 +1008,10 @@ class BcolzMinuteBarReader(MinuteBarReader):
return carray
def table_len(self, sid):
"""Returns the length of the underlying table for this sid."""
return len(self._open_minute_file('close', sid))
def get_sid_attr(self, sid, name):
sid_subdir = _sid_subdir_path(sid)
sid_path = os.path.join(self._rootdir, sid_subdir)