This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fields = ordered list of sorting fields | |
# obs = an iterator of objects where fields are present (fields MUST exist) | |
# order_desc = Sort descending(false) | |
# ignore_case = put field vales to lowercase, generates less overlap | |
# top_count = return the top X | |
def histo(fields, obs, order_desc=True, ignore_case=False, top_count=None): | |
master = [] |