|
10 | 10 |
|
11 | 11 | from pandas import Series, DataFrame
|
12 | 12 |
|
13 |
| -from pandas.compat import StringIO, u, long |
| 13 | +from pandas.compat import StringIO, u |
14 | 14 | from pandas.util.testing import (assert_series_equal, assert_almost_equal,
|
15 | 15 | assert_frame_equal, ensure_clean)
|
16 | 16 | import pandas.util.testing as tm
|
@@ -178,37 +178,3 @@ def test_to_dict(self, mapping):
|
178 | 178 | from_method = Series(ts.to_dict(collections.Counter))
|
179 | 179 | from_constructor = Series(collections.Counter(ts.iteritems()))
|
180 | 180 | tm.assert_series_equal(from_method, from_constructor)
|
181 |
| - |
182 |
| - |
183 |
| -class TestSeriesToList(TestData): |
184 |
| - |
185 |
| - def test_tolist(self): |
186 |
| - rs = self.ts.tolist() |
187 |
| - xp = self.ts.values.tolist() |
188 |
| - assert_almost_equal(rs, xp) |
189 |
| - |
190 |
| - # datetime64 |
191 |
| - s = Series(self.ts.index) |
192 |
| - rs = s.tolist() |
193 |
| - assert self.ts.index[0] == rs[0] |
194 |
| - |
195 |
| - def test_tolist_np_int(self): |
196 |
| - # GH10904 |
197 |
| - for t in ['int8', 'int16', 'int32', 'int64']: |
198 |
| - s = pd.Series([1], dtype=t) |
199 |
| - assert isinstance(s.tolist()[0], (int, long)) |
200 |
| - |
201 |
| - def test_tolist_np_uint(self): |
202 |
| - # GH10904 |
203 |
| - for t in ['uint8', 'uint16']: |
204 |
| - s = pd.Series([1], dtype=t) |
205 |
| - assert isinstance(s.tolist()[0], int) |
206 |
| - for t in ['uint32', 'uint64']: |
207 |
| - s = pd.Series([1], dtype=t) |
208 |
| - assert isinstance(s.tolist()[0], long) |
209 |
| - |
210 |
| - def test_tolist_np_float(self): |
211 |
| - # GH10904 |
212 |
| - for t in ['float16', 'float32', 'float64']: |
213 |
| - s = pd.Series([1], dtype=t) |
214 |
| - assert isinstance(s.tolist()[0], float) |
0 commit comments