@@ -1321,20 +1321,22 @@ def testSeries(self):
1321
1321
numpy = True ))
1322
1322
outp = Series (** dec )
1323
1323
1324
+ exp_np = Series (np .array ([10 , 20 , 30 , 40 , 50 , 60 ]))
1325
+ exp_pd = Series ([10 , 20 , 30 , 40 , 50 , 60 ])
1324
1326
outp = Series (ujson .decode (ujson .encode (s , orient = "records" ),
1325
1327
numpy = True ))
1326
- exp = Series ([10 , 20 , 30 , 40 , 50 , 60 ])
1327
- tm .assert_series_equal (outp , exp )
1328
+ tm .assert_series_equal (outp , exp_np )
1328
1329
1329
1330
outp = Series (ujson .decode (ujson .encode (s , orient = "records" )))
1330
- tm .assert_series_equal (outp , exp )
1331
+ exp = Series ([10 , 20 , 30 , 40 , 50 , 60 ])
1332
+ tm .assert_series_equal (outp , exp_pd )
1331
1333
1332
1334
outp = Series (ujson .decode (ujson .encode (s , orient = "values" ),
1333
1335
numpy = True ))
1334
- tm .assert_series_equal (outp , exp )
1336
+ tm .assert_series_equal (outp , exp_np )
1335
1337
1336
1338
outp = Series (ujson .decode (ujson .encode (s , orient = "values" )))
1337
- tm .assert_series_equal (outp , exp )
1339
+ tm .assert_series_equal (outp , exp_pd )
1338
1340
1339
1341
outp = Series (ujson .decode (ujson .encode (
1340
1342
s , orient = "index" ))).sort_values ()
0 commit comments