Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. class ParsedSeriesPostProcessor(ValueCompositePostProcessor):
  2.     def __init__(self):
  3.         self.others = []
  4.         self.parsed_series_tp = []      
  5.        
  6.     def _post_process (self, tp, table):
  7.         if (tp['series_id'], tp['date']) in self.parsed_series_tp:
  8.             return []
  9.        
  10.         self.parsed_series_tp.append((tp['series_id'], tp['date']))
  11.         return [tp]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement