/usr/lib/python2.7/dist-packages/pandas/core/array.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 | """
Isolate pandas's exposure to NumPy
"""
import numpy as np
Array = np.ndarray
bool = np.bool_
_dtypes = {
'int': [8, 16, 32, 64],
'uint': [8, 16, 32, 64],
'float': [16, 32, 64]
}
_lift_types = []
for _k, _v in _dtypes.items():
for _i in _v:
_lift_types.append(_k + str(_i))
for _t in _lift_types:
globals()[_t] = getattr(np, _t)
_lift_function = ['empty', 'arange', 'array', 'putmask', 'where']
for _f in _lift_function:
globals()[_f] = getattr(np, _f)
_lift_random = ['randn', 'rand']
for _f in _lift_random:
globals()[_f] = getattr(np.random, _f)
NA = np.nan
|