File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11
11
import nose
12
12
13
13
from numpy import random , nan
14
- from numpy .random import randn
14
+ from numpy .random import randn , randint
15
15
import numpy as np
16
16
import numpy .ma as ma
17
17
@@ -2512,11 +2512,11 @@ def test_to_excel_from_excel(self):
2512
2512
recons = reader .parse ('test1' )
2513
2513
assert_frame_equal (self .tsframe , recons )
2514
2514
2515
- #Test np.int64
2516
- frame = DataFrame (np .random .randn ( 10 ,2 ))
2515
+ #Test np.int64, values read come back as float
2516
+ frame = DataFrame (np .random .randint ( - 10 ,10 , size = ( 10 , 2 ) ))
2517
2517
frame .to_excel (path ,'test1' )
2518
2518
reader = ExcelFile (path )
2519
- recons = reader .parse ('test1' )
2519
+ recons = reader .parse ('test1' ). astype ( np . int64 )
2520
2520
assert_frame_equal (frame , recons )
2521
2521
2522
2522
#Test reading/writing np.bool8, roundtrip only works for xlsx
You can’t perform that action at this time.
0 commit comments