20
20
PossiblePrecisionLoss , StataMissingValue )
21
21
import pandas .util .testing as tm
22
22
from pandas .tslib import NaT
23
- from pandas .util .misc import is_little_endian
24
23
from pandas import compat
25
24
26
25
class TestStata (tm .TestCase ):
27
26
28
27
def setUp (self ):
29
- # Unit test datasets for dta7 - dta9 (old stata formats 104, 105 and 107) can be downloaded from:
30
- # http://stata-press.com/data/glmext.html
31
28
self .dirpath = tm .get_data_path ()
32
29
self .dta1_114 = os .path .join (self .dirpath , 'stata1_114.dta' )
33
30
self .dta1_117 = os .path .join (self .dirpath , 'stata1_117.dta' )
@@ -48,16 +45,6 @@ def setUp(self):
48
45
self .dta4_115 = os .path .join (self .dirpath , 'stata4_115.dta' )
49
46
self .dta4_117 = os .path .join (self .dirpath , 'stata4_117.dta' )
50
47
51
- self .dta7 = os .path .join (self .dirpath , 'cancer.dta' )
52
- self .csv7 = os .path .join (self .dirpath , 'cancer.csv' )
53
-
54
- self .dta8 = os .path .join (self .dirpath , 'tbl19-3.dta' )
55
-
56
- self .csv8 = os .path .join (self .dirpath , 'tbl19-3.csv' )
57
-
58
- self .dta9 = os .path .join (self .dirpath , 'lbw.dta' )
59
- self .csv9 = os .path .join (self .dirpath , 'lbw.csv' )
60
-
61
48
self .dta_encoding = os .path .join (self .dirpath , 'stata1_encoding.dta' )
62
49
63
50
self .csv14 = os .path .join (self .dirpath , 'stata5.csv' )
@@ -253,24 +240,6 @@ def test_write_dta6(self):
253
240
tm .assert_frame_equal (written_and_read_again .set_index ('index' ),
254
241
original )
255
242
256
- @nose .tools .nottest
257
- def test_read_dta7 (self ):
258
- expected = read_csv (self .csv7 , parse_dates = True , sep = '\t ' )
259
- parsed = self .read_dta (self .dta7 )
260
- tm .assert_frame_equal (parsed , expected )
261
-
262
- @nose .tools .nottest
263
- def test_read_dta8 (self ):
264
- expected = read_csv (self .csv8 , parse_dates = True , sep = '\t ' )
265
- parsed = self .read_dta (self .dta8 )
266
- tm .assert_frame_equal (parsed , expected )
267
-
268
- @nose .tools .nottest
269
- def test_read_dta9 (self ):
270
- expected = read_csv (self .csv9 , parse_dates = True , sep = '\t ' )
271
- parsed = self .read_dta (self .dta9 )
272
- tm .assert_frame_equal (parsed , expected )
273
-
274
243
def test_read_write_dta10 (self ):
275
244
original = DataFrame (data = [["string" , "object" , 1 , 1.1 ,
276
245
np .datetime64 ('2003-12-25' )]],
0 commit comments