@@ -1453,7 +1453,7 @@ def test_as_recarray(self):
1453
1453
FutureWarning , check_stacklevel = False ):
1454
1454
data = 'a,b\n 1,a\n 2,b'
1455
1455
expected = np .array ([(1 , 'a' ), (2 , 'b' )],
1456
- dtype = [('a' , '< i8' ), ('b' , 'O' )])
1456
+ dtype = [('a' , '= i8' ), ('b' , 'O' )])
1457
1457
out = self .read_csv (StringIO (data ), as_recarray = True )
1458
1458
tm .assert_numpy_array_equal (out , expected )
1459
1459
@@ -1462,7 +1462,7 @@ def test_as_recarray(self):
1462
1462
FutureWarning , check_stacklevel = False ):
1463
1463
data = 'a,b\n 1,a\n 2,b'
1464
1464
expected = np .array ([(1 , 'a' ), (2 , 'b' )],
1465
- dtype = [('a' , '< i8' ), ('b' , 'O' )])
1465
+ dtype = [('a' , '= i8' ), ('b' , 'O' )])
1466
1466
out = self .read_csv (StringIO (data ), as_recarray = True , index_col = 0 )
1467
1467
tm .assert_numpy_array_equal (out , expected )
1468
1468
@@ -1471,7 +1471,7 @@ def test_as_recarray(self):
1471
1471
FutureWarning , check_stacklevel = False ):
1472
1472
data = '1,a\n 2,b'
1473
1473
expected = np .array ([(1 , 'a' ), (2 , 'b' )],
1474
- dtype = [('a' , '< i8' ), ('b' , 'O' )])
1474
+ dtype = [('a' , '= i8' ), ('b' , 'O' )])
1475
1475
out = self .read_csv (StringIO (data ), names = ['a' , 'b' ],
1476
1476
header = None , as_recarray = True )
1477
1477
tm .assert_numpy_array_equal (out , expected )
@@ -1482,15 +1482,15 @@ def test_as_recarray(self):
1482
1482
FutureWarning , check_stacklevel = False ):
1483
1483
data = 'b,a\n 1,a\n 2,b'
1484
1484
expected = np .array ([(1 , 'a' ), (2 , 'b' )],
1485
- dtype = [('b' , '< i8' ), ('a' , 'O' )])
1485
+ dtype = [('b' , '= i8' ), ('a' , 'O' )])
1486
1486
out = self .read_csv (StringIO (data ), as_recarray = True )
1487
1487
tm .assert_numpy_array_equal (out , expected )
1488
1488
1489
1489
# overrides the squeeze parameter
1490
1490
with tm .assert_produces_warning (
1491
1491
FutureWarning , check_stacklevel = False ):
1492
1492
data = 'a\n 1'
1493
- expected = np .array ([(1 ,)], dtype = [('a' , '< i8' )])
1493
+ expected = np .array ([(1 ,)], dtype = [('a' , '= i8' )])
1494
1494
out = self .read_csv (StringIO (data ), as_recarray = True , squeeze = True )
1495
1495
tm .assert_numpy_array_equal (out , expected )
1496
1496
@@ -1500,7 +1500,7 @@ def test_as_recarray(self):
1500
1500
data = 'a,b\n 1,a\n 2,b'
1501
1501
conv = lambda x : int (x ) + 1
1502
1502
expected = np .array ([(2 , 'a' ), (3 , 'b' )],
1503
- dtype = [('a' , '< i8' ), ('b' , 'O' )])
1503
+ dtype = [('a' , '= i8' ), ('b' , 'O' )])
1504
1504
out = self .read_csv (StringIO (data ), as_recarray = True ,
1505
1505
converters = {'a' : conv })
1506
1506
tm .assert_numpy_array_equal (out , expected )
@@ -1509,7 +1509,7 @@ def test_as_recarray(self):
1509
1509
with tm .assert_produces_warning (
1510
1510
FutureWarning , check_stacklevel = False ):
1511
1511
data = 'a,b\n 1,a\n 2,b'
1512
- expected = np .array ([(1 ,), (2 ,)], dtype = [('a' , '< i8' )])
1512
+ expected = np .array ([(1 ,), (2 ,)], dtype = [('a' , '= i8' )])
1513
1513
out = self .read_csv (StringIO (data ), as_recarray = True ,
1514
1514
usecols = ['a' ])
1515
1515
tm .assert_numpy_array_equal (out , expected )
0 commit comments