@@ -1357,7 +1357,7 @@ def test_compact_ints_use_unsigned(self):
1357
1357
with tm .assert_produces_warning (
1358
1358
FutureWarning , check_stacklevel = False ):
1359
1359
result = self .read_csv (StringIO (data ), compact_ints = True ,
1360
- use_unsigned = False )
1360
+ use_unsigned = False )
1361
1361
tm .assert_frame_equal (result , expected )
1362
1362
1363
1363
expected = DataFrame ({
@@ -1369,7 +1369,7 @@ def test_compact_ints_use_unsigned(self):
1369
1369
with tm .assert_produces_warning (
1370
1370
FutureWarning , check_stacklevel = False ):
1371
1371
result = self .read_csv (StringIO (data ), compact_ints = True ,
1372
- use_unsigned = True )
1372
+ use_unsigned = True )
1373
1373
tm .assert_frame_equal (result , expected )
1374
1374
1375
1375
def test_compact_ints_as_recarray (self ):
@@ -1408,7 +1408,8 @@ def test_as_recarray(self):
1408
1408
data = 'a,b\n 1,a\n 2,b'
1409
1409
expected = np .array ([(1 , 'a' ), (2 , 'b' )],
1410
1410
dtype = [('a' , '<i8' ), ('b' , 'O' )])
1411
- result = self .read_csv (StringIO (data ), as_recarray = True , index_col = 0 )
1411
+ result = self .read_csv (
1412
+ StringIO (data ), as_recarray = True , index_col = 0 )
1412
1413
tm .assert_numpy_array_equal (result , expected )
1413
1414
1414
1415
# respects names
@@ -1418,7 +1419,7 @@ def test_as_recarray(self):
1418
1419
expected = np .array ([(1 , 'a' ), (2 , 'b' )],
1419
1420
dtype = [('a' , '<i8' ), ('b' , 'O' )])
1420
1421
result = self .read_csv (StringIO (data ), names = ['a' , 'b' ],
1421
- header = None , as_recarray = True )
1422
+ header = None , as_recarray = True )
1422
1423
tm .assert_numpy_array_equal (result , expected )
1423
1424
1424
1425
# header order is respected even though it conflicts
@@ -1436,7 +1437,8 @@ def test_as_recarray(self):
1436
1437
FutureWarning , check_stacklevel = False ):
1437
1438
data = 'a\n 1'
1438
1439
expected = np .array ([(1 ,)], dtype = [('a' , '<i8' )])
1439
- result = self .read_csv (StringIO (data ), as_recarray = True , squeeze = True )
1440
+ result = self .read_csv (
1441
+ StringIO (data ), as_recarray = True , squeeze = True )
1440
1442
tm .assert_numpy_array_equal (result , expected )
1441
1443
1442
1444
# does data conversions before doing recarray conversion
@@ -1447,7 +1449,7 @@ def test_as_recarray(self):
1447
1449
expected = np .array ([(2 , 'a' ), (3 , 'b' )],
1448
1450
dtype = [('a' , '<i8' ), ('b' , 'O' )])
1449
1451
result = self .read_csv (StringIO (data ), as_recarray = True ,
1450
- converters = {'a' : conv })
1452
+ converters = {'a' : conv })
1451
1453
tm .assert_numpy_array_equal (result , expected )
1452
1454
1453
1455
# filters by usecols before doing recarray conversion
@@ -1456,7 +1458,7 @@ def test_as_recarray(self):
1456
1458
data = 'a,b\n 1,a\n 2,b'
1457
1459
expected = np .array ([(1 ,), (2 ,)], dtype = [('a' , '<i8' )])
1458
1460
result = self .read_csv (StringIO (data ), as_recarray = True ,
1459
- usecols = ['a' ])
1461
+ usecols = ['a' ])
1460
1462
tm .assert_numpy_array_equal (result , expected )
1461
1463
1462
1464
def test_memory_map (self ):
0 commit comments