@@ -565,17 +565,17 @@ def test_on_float(self):
565
565
566
566
def test_on_specialized_type (self ):
567
567
# 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 ,
570
570
np .float32 , np .float64 ]:
571
571
df1 = pd .DataFrame ({
572
- 'value' : [5 , 2 , 25 , 300 , 78 , 1040 , 79 ],
572
+ 'value' : [5 , 2 , 25 , 100 , 78 , 120 , 79 ],
573
573
'symbol' : list ("ABCDEFG" )},
574
574
columns = ['symbol' , 'value' ])
575
575
df1 .value = dtype (df1 .value )
576
576
577
577
df2 = pd .DataFrame ({
578
- 'value' : [0 , 100 , 1000 , 10000 ],
578
+ 'value' : [0 , 80 , 120 , 125 ],
579
579
'result' : list ('xyzw' )},
580
580
columns = ['value' , 'result' ])
581
581
df2 .value = dtype (df2 .value )
@@ -586,7 +586,7 @@ def test_on_specialized_type(self):
586
586
587
587
expected = pd .DataFrame ({
588
588
'symbol' : list ("BACEGDF" ),
589
- 'value' : [2 , 5 , 25 , 78 , 79 , 300 , 1040 ],
589
+ 'value' : [2 , 5 , 25 , 78 , 79 , 100 , 120 ],
590
590
'result' : list ('xxxxxyz' )},
591
591
columns = ['symbol' , 'value' , 'result' ])
592
592
expected .value = dtype (expected .value )
@@ -595,18 +595,18 @@ def test_on_specialized_type(self):
595
595
596
596
def test_on_specialized_type_by_int (self ):
597
597
# 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 ,
600
600
np .float32 , np .float64 ]:
601
601
df1 = pd .DataFrame ({
602
- 'value' : [5 , 2 , 25 , 300 , 78 , 1040 , 79 ],
602
+ 'value' : [5 , 2 , 25 , 100 , 78 , 120 , 79 ],
603
603
'key' : [1 , 2 , 3 , 2 , 3 , 1 , 2 ],
604
604
'symbol' : list ("ABCDEFG" )},
605
605
columns = ['symbol' , 'key' , 'value' ])
606
606
df1 .value = dtype (df1 .value )
607
607
608
608
df2 = pd .DataFrame ({
609
- 'value' : [0 , 100 , 1000 , 10000 ],
609
+ 'value' : [0 , 80 , 120 , 125 ],
610
610
'key' : [1 , 2 , 2 , 3 ],
611
611
'result' : list ('xyzw' )},
612
612
columns = ['value' , 'key' , 'result' ])
@@ -619,7 +619,7 @@ def test_on_specialized_type_by_int(self):
619
619
expected = pd .DataFrame ({
620
620
'symbol' : list ("BACEGDF" ),
621
621
'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 ],
623
623
'result' : [np .nan , 'x' , np .nan , np .nan , np .nan , 'y' , 'x' ]},
624
624
columns = ['symbol' , 'key' , 'value' , 'result' ])
625
625
expected .value = dtype (expected .value )
0 commit comments