This file contains hidden or 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
| import numpy as np | |
| import pandas as pd | |
| from cStringIO import StringIO | |
| def parse_raw_graphite_metric(line): | |
| head, body = line.rstrip('\n').split('|', 1) | |
| name, since, until, freq = head.replace('\n', '').split(',') | |
| since = float(since) * 1e9 | |
| until = float(until) * 1e9 | |
| freq = '%ss' % int(freq) |
This file contains hidden or 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
| #!/usr/bin/python | |
| # Example usage: | |
| # $ ./division_deom.py 1 7 | |
| # 0 1 | |
| # . | |
| # 1 3 | |
| # 4 2 | |
| # 2 6 | |
| # 8 4 |
NewerOlder