@@ -429,14 +429,14 @@ def test_rename(scalars_dfs):
429
429
430
430
def test_df_peek (scalars_dfs ):
431
431
scalars_df , scalars_pandas_df = scalars_dfs
432
- peek_result = scalars_df .peek (n = 3 )
432
+ peek_result = scalars_df .peek (n = 3 , force = False )
433
433
pd .testing .assert_index_equal (scalars_pandas_df .columns , peek_result .columns )
434
434
assert len (peek_result ) == 3
435
435
436
436
437
437
def test_df_peek_filtered (scalars_dfs ):
438
438
scalars_df , scalars_pandas_df = scalars_dfs
439
- peek_result = scalars_df [scalars_df .int64_col != 0 ].peek (n = 3 )
439
+ peek_result = scalars_df [scalars_df .int64_col != 0 ].peek (n = 3 , force = False )
440
440
pd .testing .assert_index_equal (scalars_pandas_df .columns , peek_result .columns )
441
441
assert len (peek_result ) == 3
442
442
@@ -449,9 +449,9 @@ def test_df_peek_exception(scalars_dfs):
449
449
scalars_df [["int64_col" , "int64_too" ]].cumsum ().peek (n = 3 , force = False )
450
450
451
451
452
- def test_df_peek_force (scalars_dfs ):
452
+ def test_df_peek_force_default (scalars_dfs ):
453
453
scalars_df , scalars_pandas_df = scalars_dfs
454
- peek_result = scalars_df [["int64_col" , "int64_too" ]].cumsum ().peek (n = 3 , force = True )
454
+ peek_result = scalars_df [["int64_col" , "int64_too" ]].cumsum ().peek (n = 3 )
455
455
pd .testing .assert_index_equal (
456
456
scalars_pandas_df [["int64_col" , "int64_too" ]].columns , peek_result .columns
457
457
)
0 commit comments