/usr/lib/python3/dist-packages/pandas/tools/tests/test_tools.py is in python3-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 | from pandas import DataFrame
from pandas.tools.describe import value_range
import numpy as np
import pandas.util.testing as tm
class TestTools(tm.TestCase):
def test_value_range(self):
df = DataFrame(np.random.randn(5, 5))
df.ix[0, 2] = -5
df.ix[2, 0] = 5
res = value_range(df)
self.assert_(res['Minimum'] == -5)
self.assert_(res['Maximum'] == 5)
df.ix[0, 1] = np.NaN
self.assert_(res['Minimum'] == -5)
self.assert_(res['Maximum'] == 5)
|