@@ -565,17 +565,17 @@ def test_on_float(self):
565565
566566 def test_on_specialized_type (self ):
567567 # GH13936
568- for dtype in [np .uint16 , np .uint32 , np .uint64 ,
569- np .int16 , np .int32 , np .int64 ,
568+ for dtype in [np .uint8 , np . uint16 , np .uint32 , np .uint64 ,
569+ np .int8 , np . int16 , np .int32 , np .int64 ,
570570 np .float32 , np .float64 ]:
571571 df1 = pd .DataFrame ({
572- 'value' : [5 , 2 , 25 , 300 , 78 , 1040 , 79 ],
572+ 'value' : [5 , 2 , 25 , 100 , 78 , 120 , 79 ],
573573 'symbol' : list ("ABCDEFG" )},
574574 columns = ['symbol' , 'value' ])
575575 df1 .value = dtype (df1 .value )
576576
577577 df2 = pd .DataFrame ({
578- 'value' : [0 , 100 , 1000 , 10000 ],
578+ 'value' : [0 , 80 , 120 , 125 ],
579579 'result' : list ('xyzw' )},
580580 columns = ['value' , 'result' ])
581581 df2 .value = dtype (df2 .value )
@@ -586,7 +586,7 @@ def test_on_specialized_type(self):
586586
587587 expected = pd .DataFrame ({
588588 'symbol' : list ("BACEGDF" ),
589- 'value' : [2 , 5 , 25 , 78 , 79 , 300 , 1040 ],
589+ 'value' : [2 , 5 , 25 , 78 , 79 , 100 , 120 ],
590590 'result' : list ('xxxxxyz' )},
591591 columns = ['symbol' , 'value' , 'result' ])
592592 expected .value = dtype (expected .value )
@@ -595,18 +595,18 @@ def test_on_specialized_type(self):
595595
596596 def test_on_specialized_type_by_int (self ):
597597 # GH13936
598- for dtype in [np .uint16 , np .uint32 , np .uint64 ,
599- np .int16 , np .int32 , np .int64 ,
598+ for dtype in [np .uint8 , np . uint16 , np .uint32 , np .uint64 ,
599+ np .int8 , np . int16 , np .int32 , np .int64 ,
600600 np .float32 , np .float64 ]:
601601 df1 = pd .DataFrame ({
602- 'value' : [5 , 2 , 25 , 300 , 78 , 1040 , 79 ],
602+ 'value' : [5 , 2 , 25 , 100 , 78 , 120 , 79 ],
603603 'key' : [1 , 2 , 3 , 2 , 3 , 1 , 2 ],
604604 'symbol' : list ("ABCDEFG" )},
605605 columns = ['symbol' , 'key' , 'value' ])
606606 df1 .value = dtype (df1 .value )
607607
608608 df2 = pd .DataFrame ({
609- 'value' : [0 , 100 , 1000 , 10000 ],
609+ 'value' : [0 , 80 , 120 , 125 ],
610610 'key' : [1 , 2 , 2 , 3 ],
611611 'result' : list ('xyzw' )},
612612 columns = ['value' , 'key' , 'result' ])
@@ -619,7 +619,7 @@ def test_on_specialized_type_by_int(self):
619619 expected = pd .DataFrame ({
620620 'symbol' : list ("BACEGDF" ),
621621 'key' : [2 , 1 , 3 , 3 , 2 , 2 , 1 ],
622- 'value' : [2 , 5 , 25 , 78 , 79 , 300 , 1040 ],
622+ 'value' : [2 , 5 , 25 , 78 , 79 , 100 , 120 ],
623623 'result' : [np .nan , 'x' , np .nan , np .nan , np .nan , 'y' , 'x' ]},
624624 columns = ['symbol' , 'key' , 'value' , 'result' ])
625625 expected .value = dtype (expected .value )
0 commit comments