/usr/lib/python2.7/dist-packages/pandas/tseries/interval.py is in python-pandas 0.13.1-2ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | import numpy as np
from pandas.core.index import Index
class Interval(object):
"""
Represents an interval of time defined by two timestamps
"""
def __init__(self, start, end):
self.start = start
self.end = end
class PeriodInterval(object):
"""
Represents an interval of time defined by two Period objects (time ordinals)
"""
def __init__(self, start, end):
self.start = start
self.end = end
class IntervalIndex(Index):
"""
"""
def __new__(self, starts, ends):
pass
def dtype(self):
return self.values.dtype
if __name__ == '__main__':
pass
|